Api - point Namespace
Index
Functions
add
average
clone
closest
distort
fromAngleOnCircle
-
Get a point on a circle or arc path, at a given angle.
Parameters
-
angleInDegrees: number
The angle at which you want to find the point, in degrees.
-
circle: IPathCircle
A circle or arc.
Returns IPoint
A new point object.
-
fromArc
-
Get the two end points of an arc path.
Parameters
-
arc: IPathArc
The arc path object.
Returns IPoint[]
Array with 2 elements: [0] is the point object corresponding to the start angle, [1] is the point object corresponding to the end angle.
-
fromPathEnds
fromPolar
-
Get a point from its polar coordinates.
Parameters
-
angleInRadians: number
The angle of the polar coordinate, in radians.
-
radius: number
The radius of the polar coordinate.
Returns IPoint
A new point object.
-
fromSlopeIntersection
-
Calculates the intersection of slopes of two lines.
Parameters
-
lineA: IPathLine
First line to use for slope.
-
lineB: IPathLine
Second line to use for slope.
-
Default value options: IPathIntersectionBaseOptions = {}
Optional IPathIntersectionOptions.
Returns IPoint
point of intersection of the two slopes, or null if the slopes did not intersect.
-
middle
mirror
rotate
rounded
scale
subtract
zero
-
A point at 0,0 coordinates. NOTE: It is important to call this as a method, with the empty parentheses.
Returns IPoint
A new point.
Generated using TypeDoc
Add two points together and return the result as a new point object.