Creates an instance of Vector4 with given coordinates.
The w coordinate
The x coordinate
The y coordinate
The z coordinate
Calculates the distance between this vector another one given as parameter.
Returns the length of the current vector. Only uses xyz and excludes w.
Returns a new vector with the coordinates multiplied by the parameter s. Only the xyz dimensions are multiplied.
Returns the normalised vector.
Creates a threedimensional vector with the corresponding x,y,z-values, omits the w value.
Returns a new instance with all components set to zero.
Generated using TypeDoc
This class represents a fourdimensional real Vector for use in Graphictransformations. Some operations ignore the fourth component.