Point constructor
const
Point(
- Position position
A point geometry with position
.
Examples:
// a point with a 2D position (x: 10.0, y: 20.0)
Point([10.0, 20.0].xy));
// a point with a 3D position (x: 10.0, y: 20.0, z: 30.0)
Point([10.0, 20.0, 30.0].xyz);
// a point with a measured 2D position (x: 10.0, y: 20.0, m: 40.0)
Point([10.0, 20.0, 40.0].xym);
// a point with a measured 3D position
// (x: 10.0, y: 20.0, z: 30.0, m: 40.0)
Point([10.0, 20.0, 30.0, 40.0].xyzm);
Implementation
const Point(Position position) : _position = position;