rotatePoint() function

Rotate a point around some origin.

Signature:

declare function rotatePoint(point: Point, angle: number, origin?: Point): Point;

Parameters

Parameter

Type

Description

point

Point

angle

number

origin

Point

(Optional)

**Returns:**

Point

Remarks

Used to modify a point during "move" operations when the modifier is rotated.

https://stackoverflow.com/a/17411276/1109174

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2025 Core3D, Inc. All Rights Reserved.