ConstGets the angle of a point.
X coordinate value
Y coordinate value
Angle of the point in degrees about [0,0]. Zero is the three o'clock direction; the angle increases clockwise.
Angle between vectors.
Angle between vectors in degrees.
Use angleBetweenVectors instead.
Gets the angle of a point about [0,0,0] in the YOZ plane.
Point in three-dimensional space.
Angle of the point in degrees about [0,0,0] in the YOZ plane. Zero is the three o'clock direction; the angle increases clockwise.
Gets the angle of [x,y,z] about the origin in the YOZ plane.
X coordinate (unused).
Y coordinate.
Z coordinate.
Angle of the point in degrees.
Gets the angle of a point about [0,0,0] in the XOZ plane.
Point in three-dimensional space.
Angle of the point in degrees about [0,0,0] in the XOZ plane. Zero is the three o'clock direction; the angle increases clockwise.
Gets the angle of [x,y,z] about the origin in the XOZ plane.
X coordinate.
Y coordinate (unused).
Z coordinate.
Angle of the point in degrees.
Gets the angle of a point about [0,0,0] in the XOY plane.
Point in three-dimensional space
Angle of the point in degrees about [0,0,0] in the XOY plane. Zero is the three o'clock direction; the angle increases clockwise.
Gets the angle of [x,y,z] about the origin in the XOY plane.
X coordinate.
Y coordinate.
Z coordinate (unused).
Angle of the point in degrees.
2D arc in the XOY plane, centered at [0,0,0], with angles in degrees.
Arc radius.
Arc angle in degrees in (0°, 360°), starting at 0.
Shape representing an arc.
2D arc in the XOY plane, centered at [0,0,0], with angles in degrees.
Arc radius.
Start angle of the arc in degrees in (0°, 360°).
End angle of the arc in degrees in (0°, 360°).
Shape representing an arc.
Returns the bounding box of a shape.
Shape.
Bounding box of the shape.
3D solid primitive: a box of dimensions x, y, z, positioned relative to [0,0,0].
Box size along X.
Box size along Y.
Box size along Z.
Box.
3D solid primitive: a box of dimensions x, y, z, positioned relative to [0,0,0].
Cube size.
Box.
Chamfers a shape. Unlike filleting, this operation applies only to solids. The chamfer is defined by distance r from the edge to the chamfer line and an array of nearby reference points refs.
Solid to chamfer.
Distance from the edge to the chamfer line.
Result of the chamfer operation.
Chamfers a shape. Unlike filleting, this operation applies only to solids. The chamfer is defined by distance r from the edge to the chamfer line and an array of nearby reference points refs.
Result of the chamfer operation.
2D circle or circular sector in the XOY plane, centered at [0,0,0], with angles in degrees.
Circle radius.
Shape representing a circle or circular sector.
2D circle or circular sector in the XOY plane, centered at [0,0,0], with angles in degrees.
Circle radius.
Sector angle in degrees in (0°, 360°); the shape is centered about the OX axis.
Shape representing a circle or circular sector.
2D circle or circular sector in the XOY plane, centered at [0,0,0], with angles in degrees.
Circle radius.
Start angle of the sector in degrees in (0°, 360°).
End angle of the sector in degrees in (0°, 360°).
Shape representing a circle or circular sector.
3D solid primitive: a sleeve (a cylinder with an axial hole), defined by outer radius r1, inner radius r2, and height h, relative to [0,0,0]. The angle parameter can specify a sleeve sector.
Outer radius of the sleeve.
Inner radius of the sleeve.
Sleeve height.
Shape representing a sleeve.
3D solid primitive: a sleeve (a cylinder with an axial hole), defined by outer radius r1, inner radius r2, and height h, relative to [0,0,0]. The angle parameter can specify a sleeve sector.
Outer radius of the sleeve.
Inner radius of the sleeve.
Sleeve height.
Sleeve sector angle in degrees; the shape is centered about OX.
Shape representing a sleeve.
3D solid primitive: a cone defined by bottom radius r1, top radius r2, and height h, relative to [0,0,0]. The angle parameter can specify a cone sector.
Bottom radius of the cone.
Top radius of the cone.
Cone height.
Shape representing a cone.
3D solid primitive: a cone defined by bottom radius r1, top radius r2, and height h, relative to [0,0,0]. The angle parameter can specify a cone sector.
Bottom radius of the cone.
Top radius of the cone.
Cone height.
Cone sector angle in degrees; the shape is centered about OX.
Shape representing a cone.
3D solid primitive: a cylinder defined by radius r and height h, relative to [0,0,0]. The angle parameter can specify a cylinder sector.
Cylinder radius.
Cylinder height.
Shape representing a cylinder.
3D solid primitive: a cylinder defined by radius r and height h, relative to [0,0,0]. The angle parameter can specify a cylinder sector.
Cylinder radius.
Cylinder height.
Cylinder sector angle in degrees; the shape is centered about OX.
Shape representing a cylinder.
Converts radians to degrees.
Angle in radians.
Angle in degrees.
Converts degrees to radians; same as rad.
Angle in degrees.
Angle in radians.
Calculates the distance from a point to a segment in the XOY plane. All points are three-dimensional, but only X and Y are used in the calculation.
Distance from the point to the segment in the XOY plane.
Calculates the distance from a point to a segment in the XOZ plane. All points are three-dimensional, but only X and Z are used in the calculation.
Distance from the point to the segment in the XOZ plane.
Calculates the distance from a point to a segment in the YOZ plane. All points are three-dimensional, but only Y and Z are used in the calculation.
Distance from the point to the segment in the YOZ plane.
2D ellipse or elliptic sector in the XOY plane, centered at [0,0,0], with angles in degrees.
First radius of the ellipse.
Second radius of the ellipse.
Shape representing an ellipse or elliptic sector.
2D ellipse or elliptic sector in the XOY plane, centered at [0,0,0], with angles in degrees.
First radius of the ellipse.
Second radius of the ellipse.
Start angle of the elliptic sector in degrees in (0°, 360°).
End angle of the elliptic sector in degrees in (0°, 360°).
Shape representing an ellipse or elliptic sector.
Ellipse centered at center: its major axis passes through center and s1, and its minor radius is the distance from s2 to the major axis. The ellipse lies in the plane through center, s1, and s2.
Shape representing an ellipse.
Elliptic sector centered at center (see ellipse(s1, s2, center)).
Shape representing an elliptic sector.
Rounds to an integer and makes it even.
Number.
Even integer.
Fillets a shape. For solids, edges are modified; for planar shapes, vertices are modified. Fillets are defined by radius r and an array of reference points refs near the edges or vertices to modify.
Shape to fillet.
Fillet radius.
Shape resulting from the fillet operation.
Fillets a shape. For solids, edges are modified; for planar shapes, vertices are modified. Fillets are defined by radius r and an array of reference points refs near the edges or vertices to modify.
Shape resulting from the fillet operation.
Converts polar coordinates (radius, angle) to Cartesian coordinates (x, y).
Radius.
Angle in degrees.
Point in Cartesian coordinates.
Returns intersection points of segments p and q; if the segments do not intersect, the point is invalid.
Array of intersection points of segments p and q.
Returns the intersection point of segments p and q; the point is invalid if they do not intersect.
Intersection point of segments p and q.
Returns the intersection point of segments p and q; the point is invalid if they do not intersect.
Intersection point of segments p and q.
Returns true if the absolute value of arg is less than or equal to eps.
Numeric value to process.
Optionaleps: number
eps [default=Math.EPSILON] - Floating-point comparison tolerance.
Operation result.
Returns true if the difference between the absolute values of arg1 and arg2 is less than or equal to eps.
First numeric value.
Second numeric value.
Optionaleps: number
eps [default=Math.EPSILON] - Floating-point comparison tolerance.
Operation result.
Returns true if the number is even after rounding to an integer.
Number.
True if the number is even.
Returns true if v1 is strictly greater than v2, allowing for Math.EPSILON.
First numeric value.
Second numeric value.
Comparison result.
Returns true if arg1 is greater than or equal to arg2, allowing for eps.
First numeric value.
Second numeric value.
Optionaleps: number
eps [default=Math.EPSILON] - Floating-point comparison tolerance.
Operation result.
Returns true if v1 is strictly less than v2, allowing for Math.EPSILON.
First numeric value.
Second numeric value.
Comparison result.
Returns true if arg1 is less than or equal to arg2, allowing for eps.
First numeric value.
Second numeric value.
Optionaleps: number
eps [default=Math.EPSILON] - Floating-point comparison tolerance.
Operation result.
Returns true if the number is odd after rounding to an integer.
Number.
True if the number is odd.
Calculates the mean angle between a1 and a2 in the specified direction (CW — clockwise, CCW — counterclockwise).
Mean angle in degrees.
2D regular N-sided polygon in the XOY plane, centered at [0,0,0].
Polygon radius: distance from the center to the vertices.
Number of polygon vertices (at least 3).
Shape representing a regular N-sided polygon.
Normalizes an angle to the range from 0° to 360°.
Angle in degrees.
Normalized angle in (0°, 360°).
Normalizes an angle to the range from -180° to +180°.
Angle in degrees.
Normalized angle in (-180°, +180°).
Normalizes the angular distance to the range from 0° to 360°.
Angle in degrees.
Normalized angle in (0°, 360°).
Rounds to an integer and makes it odd.
Number.
Odd integer.
Creates a motor piece from a geometric shape and a material.
Geometric shape of the piece.
Piece material.
Piece representing a motor part.
Creates a 2D point.
Optionalx: number
Point x coordinate.
Optionaly: number
Point y coordinate.
Point in Cartesian coordinates.
Creates a point in 3D space.
Optionalx: number
Point x coordinate.
Optionaly: number
Point y coordinate.
Optionalz: number
Point z coordinate.
Point3 representing a point in three-dimensional space.
Determines the position of a point relative to a polygon in 3D space.
-1 — outside the polygon (ON_UNBOUNDED_SIDE), 0 — on the polygon boundary (ON_BOUNDARY), 1 — inside the polygon (ON_BOUNDED_SIDE).
Determines the position of a point relative to a geometric shape in 3D space.
-1 — outside the shape (ON_UNBOUNDED_SIDE), 0 — on the shape boundary (ON_BOUNDARY), 1 — inside the shape (ON_BOUNDED_SIDE).
Converts degrees to radians.
Angle in degrees.
Angle in radians.
Converts radians to degrees; same as deg.
Angle in radians.
Angle in degrees.
Radial distance of a point in 2D space.
Point x coordinate
Point y coordinate
Radial distance of [x,y] from [0,0].
Radial distance of a point in the YOZ plane.
Point in three-dimensional space.
Radial distance of a point from [0,0,0].
Radial distance of a point in the YOZ plane.
Point x coordinate
Point y coordinate
Point z coordinate
Radial distance of a point from [0,0,0].
Radial distance in the XOZ plane, with origin [0,0,0].
Point in three-dimensional space.
Radial distance of a point from [0,0,0].
Radial distance in the XOZ plane, with origin [0,0,0].
Point x coordinate
Point y coordinate
Point z coordinate
Radial distance of a point from [0,0,0].
Radial distance in the XOY plane, with origin [0,0,0].
Point in three-dimensional space.
Radial distance of a point from [0,0,0].
Radial distance in the XOY plane, with origin [0,0,0].
Point x coordinate
Point y coordinate
Point z coordinate
Radial distance of a point from [0,0,0].
2D rectangle in the XOY plane.
Rectangle side along X
Rectangle side along Y
Optionalcenter: boolean
If true, the rectangle is centered at [0,0,0]; otherwise, one corner is at [0,0,0].
Shape representing a rectangle.
2D ring or ring sector in the XOY plane, centered at [0,0,0], with angles in degrees.
Outer ring radius
Inner ring radius
Shape representing a ring or ring sector.
2D ring or ring sector in the XOY plane, centered at [0,0,0], with angles in degrees.
Outer ring radius
Inner ring radius
Ring sector angle from 0 to 360°. The shape is centered about OX.
Shape representing a ring or ring sector.
2D ring or ring sector in the XOY plane, centered at [0,0,0], with angles in degrees.
Outer ring radius
Inner ring radius
Start angle of the ring sector in degrees
End angle of the ring sector in degrees
Shape representing a ring or ring sector.
Rounds value to the specified precision.
Number.
Unknown
Number rounded to the specified precision.
Returns the solid corresponding to the bounding box.
Bounding box.
Shape representing a box.
Returns the sign of a number.
Number whose sign is determined.
-1 if the number is negative, 0 if the number is zero, 1 if the number is positive.
3D solid primitive: a sphere positioned relative to [0,0,0].
Sphere radius
Shape representing a sphere.
3D solid primitive: a sphere positioned relative to [0,0,0].
Sphere radius
First rotation angle in degrees
Shape representing a sphere.
3D solid primitive: a sphere positioned relative to [0,0,0].
Sphere radius
First rotation angle in degrees
Second rotation angle in degrees
Shape representing a sphere.
3D solid primitive: a sphere positioned relative to [0,0,0].
Sphere radius
First rotation angle in degrees
Second rotation angle in degrees
Third rotation angle in degrees
Shape representing a sphere.
2D square in the XOY plane.
Square side length
Optionalcenter: boolean
If true, the square is centered at [0,0,0]; otherwise, one corner is at [0,0,0].
Shape representing a square
3D solid primitive: a torus positioned relative to [0,0,0].
Major torus radius
Minor torus radius
Shape representing a torus
3D solid primitive: a torus positioned relative to [0,0,0].
Major torus radius
Minor torus radius
Rotation angle along U
Shape representing a torus
3D solid primitive: a torus positioned relative to [0,0,0].
Major torus radius
Minor torus radius
Start angle along V
End angle along V
Shape representing a torus
3D solid primitive: a torus positioned relative to [0,0,0].
Major torus radius
Minor torus radius
Start angle along V
End angle along V
Rotation angle along U
Shape representing a torus
Creates a 3D vector specifying a direction and length.
Optionalx: number
Point x coordinate
Optionaly: number
Point y coordinate
Optionalz: number
Point z coordinate
Vector3 representing a three-dimensional vector.
Built-in Geom object