Skip to main content

pMove()

Moves the cursor by polar coordinates, relative to the current tangent. The angle is measured from the tangent of the previous geometry (defaults to +X when there is none).

Returns: Geometry

Signatures

pMove(radius: number, angle: number): Geometry

Moves the cursor by polar coordinates, relative to the current tangent. The angle is measured from the tangent of the previous geometry (defaults to +X when there is none).

ParameterTypeDescription
radiusnumberThe distance to move
anglenumberThe angle in degrees, relative to the current tangent

pMove(target: SceneObject, angle: number): Geometry

Moves the cursor along the given angle (relative to the current tangent) to the nearest intersection with the target geometry. The nearest intersection (in either direction along the ray) is used.

ParameterTypeDescription
targetSceneObjectThe geometry to intersect with
anglenumberThe angle in degrees, relative to the current tangent