Create a new Vector4 of (0, 0, 0, 1)
.
Create a new Vector4 with the same values as v
.
the <a href="Vector4.html">Vector4</a> to copy the values from
Create a new Vector4 with the first three components from the
given v
and the given w
.
the <a href="Vector3.html">Vector3</a>
the w component
Create a new Vector4 with the first two components from the
given v
and the given z
and w
.
the <a href="Vector2.html">Vector2</a>
the z component
the w component
Create a new Vector4 and initialize all four components with the given value.
the value of all four components
Create a new Vector4 with the given component values.
the x component
the y component
the z component
the w component
Create a new Vector4 and initialize its four components from the first four elements of the given array.
the array containing at least four elements
The w component of the vector.
The x component of the vector.
The y component of the vector.
The z component of the vector.
Linearly numbererpolate this
and other
using the given numbererpolation factor t
and store the result in this
.
If t
is 0.0
then the result is this
. If the numbererpolation factor is 1.0
then the result is other
.
the other vector
the numbererpolation factor between 0.0 and 1.0
this
Transform this vector by the given quaternion quat
and store the result in this
.
the quaternion to transform this vector
this
Rotate this vector the specified radians around the given rotation axis.
the angle in radians
the x component of the rotation axis
the y component of the rotation axis
the z component of the rotation axis
this
Set this Vector4 to the values of the given v
.
the vector whose values will be copied numbero this
this
Set the x, y, z: and components of this to the components of
v
and the w component to w
.
the <a href="Vector3.html">Vector3</a> to copy
the w component
this
Set the x and y components from the given v
and the z and w components to the given z
and w
.
the <a href="Vector2.html">Vector2</a>
the z component
the w component
this
Set the x, y, z, w: and components to the supplied value.
the value of all four components
this
Set the x, y, z, w: and components to the supplied values.
the x component
the y component
the z component
the w component
this
Set the x, y, components: z to the supplied values.
the x component
the y component
the z component
this
Set the four components of this vector to the first four elements of the given array.
the array containing at least four elements
this
Set the value of the specified component of this vector.
the component whose value to set, : within<code>[0..3]</code>
the value to set
this
Subtract the supplied vector from this one and store the result in dest
.
dest
Subtract (x, y, z, w)
from this one and store the result in dest
.
the x component to subtract
the y component to subtract
the z component to subtract
the w component to subtract
dest
Return a string representation of this vector by formatting the vector components with the given {@link NumberFormat}.
the {@link NumberFormat} used to format the vector components with
the string representation
Set all components to zero.
this
Return the distance between (x1, y1, z1, w1)
and (x2, y2, z2, w2)
.
the x component of the first vector
the y component of the first vector
the z component of the first vector
the w component of the first vector
the x component of the second vector
the y component of the second vector
the z component of the second vector
the 2 component of the second vector
the euclidean distance
Return the squared distance between (x1, y1, z1, w1)
and (x2, y2, z2, w2)
.
the x component of the first vector
the y component of the first vector
the z component of the first vector
the w component of the first vector
the x component of the second vector
the y component of the second vector
the z component of the second vector
the w component of the second vector
the euclidean distance squared
Get the length squared of a 4-dimensional number-precision vector.
The vector's x component
The vector's y component
The vector's z component
The vector's w component
the length squared of the given vector
Get the length of a 4-dimensional number-precision vector.
The vector's x component
The vector's y component
The vector's z component
The vector's w component
the length of the given vector
Generated using TypeDoc
Contains the definition of a Vector comprising 4 numbers and associated transformations.
Richard Greenlees
Kai Burjack
F. Neurath