8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SObject.h"
12namespace rsh::ScriptBinding
165 :
public SObjectStatic
239Q_DECLARE_METATYPE(SVector::_SVectorDummy);
Matrix with 3 lines and 4 columns to make any transformation. This class should be used in order to a...
Definition: SMatrix.h:21
This class is an abstract class, you can use these function in its derived classes.
Definition: SObject.h:35
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
The mathematical object vector.
Definition: SVector3.h:26
static SVector New()
Default constructor to initialize all values with zero.
static SVector New(Number X, Number Y, Number Z)
Constructs a new SVector by defining its data.
String toString()
Get the type of the variable.
SVector GetNormalized()
Normalize a copy of the current vector.
Boolean Equals(SVector VectToCompare)
Normalize()
Modifies the 3D vector to have its norm equal to 1.
static String toString()
Get the type of the variable.
SetX(Number X)
Sets the X coordinate.
SVector Add(SVector Vecteur)
Calculates the sum of the current vector and another vector.
SVector Sub(SVector Vecteur)
Calculates the subtraction of the current vector by another vector.
SVector Mult(Number Multiplicateur)
To multiply the current vector with a scalar value.
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....
SVector Div(Number Div)
To divide a vector by a value.
static Number Angle(SVector V1, SVector V2)
Compute the angle in degrees between two 3D vectors.
Opposite()
Calculates a vector's opposite.
static SVector New(SVector Other)
Constructs an SVector by copying the SVector Other.
SVector SetNormed()
Modifies the 3D vector to have its norm equal to 1.
SetY(Number Y)
Sets the Y coordinate.
ApplyTransformation(SMatrix iMatrix)
To apply a geometric transformation to the current object by making a product with the given matrix.
static SVector Cross(SVector V1, SVector V2)
Make the 3D vectorial product of two 3D vectors (cross product).
String ValuesToString()
Get a string representation of the vector.
static Number Dot(SVector V1, SVector V2)
Make the scalar product of two 3D vectors (dot product).
SetZ(Number Z)
Sets the Z coordinate.