--- layout: posts title: Api - ICascadePoint Interface ---
Use the $original as the $result.
The current final value of the cascade.
Add two points together and return the result as a new point object.
Second point.
Optional boolean to subtract instead of add.
this cascade container, this.$result will be A new point object.
Get the average of two points.
Second point.
this cascade container, this.$result will be New point object which is the average of a and b.
Clone a point into a new point.
this cascade container, this.$result will be A new point with same values as the original.
From an array of points, find the closest point to a given reference point.
Array of points to choose from.
this cascade container, this.$result will be The first closest point from the pointOptions.
Distort a point's coordinates.
The amount of x scaling.
The amount of y scaling.
this cascade container, this.$result will be A new point.
Create a clone of a point, mirrored on either or both x and y axes.
Boolean to mirror on the x axis.
Boolean to mirror on the y axis.
this cascade container, this.$result will be Mirrored point.
Rotate a point.
The amount of rotation, in degrees.
(default [0, 0]) The center point of rotation.
this cascade container, this.$result will be A new point.
Round the values of a point.
Optional exemplar number of decimal places.
this cascade container, this.$result will be A new point with the values rounded.
Scale a point's coordinates.
The amount of scaling.
this cascade container, this.$result will be A new point.
Subtract a point from another point, and return the result as a new point. Shortcut to Add(a, b, subtract = true).
Second point.
this cascade container, this.$result will be A new point object.
Generated using TypeDoc
The initial context object of the cascade.