|
| SVector | Add (SVector vector) |
| | Calculate the sum of the current vector and another vector.
|
| |
| | ApplyTransformation (SMatrix matrix) |
| | Apply a geometric transformation to the current SVector by making a product with the given matrix.
|
| |
| SVector | Div (number divValue) |
| | Calculate the division of a vector by a scalar.
|
| |
| boolean | Equals (SVector vectToCompare) |
| | Test if two vectors are equal or not.
|
| |
| number | GetLength () |
| | Get the length of the SVector.
|
| |
| SVector | GetNormalized () |
| | Normalize a copy of the current vector.
|
| |
| number | GetX () |
| | Get the X coordinate value.
|
| |
| number | GetY () |
| | Get the Y coordinate value.
|
| |
| number | GetZ () |
| | Get the Z coordinate value.
|
| |
| boolean | IsNull () |
| | Return if the vector is null (0, 0, 0) or not.
|
| |
| SVector | Mult (number multValue) |
| | Calculate the multiplication of a vector by a scalar.
|
| |
| | Normalize () |
| | Modify the 3D vector to have its norm equal to 1.
|
| |
| | Opposite () |
| | Modify the SVector to have its opposite.
|
| |
| | SetX (number x) |
| | Set the X coordinate.
|
| |
| | SetY (number y) |
| | Set the Y coordinate.
|
| |
| | SetZ (number z) |
| | Set the Z coordinate.
|
| |
| SVector | Sub (SVector vector) |
| | Calculate the subtraction of the current vector and another vector.
|
| |
| | SVector () |
| | Empty constructor.
|
| |
| | SVector (number x, number y, number z) |
| | Constructor from X, Y, Z coordinates.
|
| |
| | SVector (SPoint endPt) |
| | Constructor from one point. The result is the vector between the origin (0,0,0) and the point 'endPt'.
|
| |
| | SVector (SPoint startPt, SPoint endPt) |
| | Constructor which initializes the vector between a starting point and an ending point.In other words the vector is initialized to 'endPt'-'startPt'.
|
| |
| | SVector (SVector other) |
| | Constructor by copy from other vector.
|
| |
| string | toString () |
| | Get the type of the variable.
|
| |
| string | ValuesToString () |
| | Get a string representation of the vector.
|
| |
|
| static number | Angle (SVector vector1, SVector vector2) |
| | Compute the angle in degrees between two 3D vectors.
|
| |
| static SVector | Cross (SVector v1, SVector v2) |
| | Make the 3D vectorial product of two 3D vectors (cross product).
|
| |
| static number | Dot (SVector v1, SVector v2) |
| | Make the scalar product of two 3D vectors (dot product).
|
| |
| static SVector | New () |
| | Empty constructor.
|
| |
| static SVector | New (number x, number y, number z) |
| | Constructor from X, Y, Z coordinates.
|
| |
| static SVector | New (SPoint endPt) |
| | Constructor from one point. The result is the vector between the origin (0,0,0) and the point 'endPt'.
|
| |
| static SVector | New (SPoint startPt, SPoint endPt) |
| | Constructor which initializes the vector between a starting point and an ending point.In other words the vector is initialized to 'endPt'-'startPt'.
|
| |
| static SVector | New (SVector other) |
| | Constructor by copy from other vector.
|
| |
Allow the use of the mathematical vector object.