new ClipPt2D(X, Y)
A 2D {X,Y} point suitable for use with ClipperLib.
This object prototypes the ClipperLib.FPoint class to round
millimetre-based coordinates to two decimal places.
Parameters:
| Name | Type | Description |
|---|---|---|
X |
number | The 2D X-axis component. |
Y |
number | The 2D Y-axis component. |
Methods
-
createFromXY(vec) <static>
-
Creates a new 2D clipper point from the
xandycomponents of a 3D model position.Parameters:
Name Type Description vecTHREE.Vector3 The 3D position in model space.
Returns:
Returns a 2D clipper point.
- Type
- object
-
createFromXZ(vec) <static>
-
Creates a new 2D clipper point from the
xandzcomponents of a 3D model position.Parameters:
Name Type Description vecTHREE.Vector3 The 3D position in model space.
Returns:
Returns a 2D clipper point.
- Type
- object
-
createFromYZ(vec) <static>
-
Creates a new 2D clipper point from the
yandzcomponents of a 3D model position.Parameters:
Name Type Description vecTHREE.Vector3 The 3D position in model space.
Returns:
Returns a 2D clipper point.
- Type
- object