add |
Add a vector to this vector. |
angleTo |
Gets the angle between this vector and another vector. |
asArray |
Returns the vector values as an array [x, y]. |
asPoint |
Return a point with the same x and y values as this vector. |
classType |
Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType(). |
copy |
Creates and returns an independent copy of this Vector2D object. |
create |
Creates a 2D vector object. |
dotProduct |
Calculates the Dot Product of this vector and an input vector. |
isEqualTo |
Compare this vector with another to check for equality. |
isParallelTo |
Compare this vector with another to check for parallelism. |
isPerpendicularTo |
Compare this vector with another to check for perpendicularity. |
normalize |
Normalizes the vector. Normalization makes the vector length equal to one. The vector should not be zero length. |
scaleBy |
Scales the vector by specifying a scaling factor. |
setWithArray |
Sets the definition of the vector by specifying an array containing the x and y coordinates. |
subtract |
Subtract a vector from this vector. |
transformBy |
Transforms the vector by specifying a 2D transformation matrix. |