Create a new Vector3 and initialize all three components with the given value.
the value of all three components
Create a new Vector3 with the same values as v
.
the Vector3 to copy the values from
Create a new Vector3 with the first two components from the
given v
and the given z
Create a new Vector3 with the given component values.
the value of x
the value of y
the value of z
The x component of the vector.
The y component of the vector.
The z component of the vector.
Set this vector to be the cross product of itself and v
.
this
Set this vector to be the cross product of itself and (x, y, z)
.
the x component of the other vector
the y component of the other vector
the z component of the other vector
this
Divide this Vector3f component-wise by another Vector3fc.
this
Divide all components of this Vector3 by the given scalar value.
the scalar to divide by
this
Divide the components of this Vector3f by the given scalar values and store the result in this
.
the x component to divide this vector by
the y component to divide this vector by
the z component to divide this vector by
this
Get the dot product of this vector and v.
the vector to dot multiply
the dot product
Get the dot product of this vector and (x, y, z).
the x component to dot multiply
the y component to dot multiply
the z component to dot multiply
the dot product
Compute the half vector between this and the other vector.
this
Compute the half vector between this and the vector (x, y, z)
.
the x component of the other vector
the y component of the other vector
the z component of the other vector
this
Linearly interpolate this
and other
using the given interpolation factor t
and store the result in this
.
If `t` is `0.0` then the result is `this`. If the interpolation factor is `1.0` then the result is `other`.
the other vector
the interpolation factor between 0.0 and 1.0
this
Multiply all components of this Vector3 by the given scalar value.
the scalar to multiply this vector by
this
Multiply the components of this Vector3f by the given scalar values and store the result in dest
or this
.
the x component to multiply this vector by
the y component to multiply this vector by
the z component to multiply this vector by
this
Multiply this Vector3f component-wise by another Vector3fc.
this
Multiply the given matrix with this Vector3f and store the result in dest
or this
.
this
Multiply the given 4x4 matrix mat
with this
and return the w component
of the resulting 4D vector.
w
component of this
to be 1.0
.the w component of the resulting 4D vector after multiplication
Transform this
vector so that it is orthogonal to the given vector v
and normalize the result.
Reference: Gram–Schmidt process
this
Transform this
vector so that it is orthogonal to the given unit vector v
and normalize the result.
The vector v
is assumed to be a normalize() unit vector.
Reference: Gram–Schmidt process
the reference unit vector which the result should be orthogonal to
this
Reflect this vector about the given normal
vector.
this
Reflect this vector about the given normal vector.
the x component of the normal
the y component of the normal
the z component of the normal
this
Rotate this vector by the given quaternion quat
and store the result in this
.
the quaternion to rotate this vector
this
Set the x, y and z components to match the supplied vector.
contains the values of x, y and z to set
this
Set the first two components from the given v
and the z component from the given z
this
Set the x, y, and z components to the supplied value.
the value of all three components
this
Set the x, y and z components to the supplied values.
the x component
the y component
the z component
this
Set the value of the specified component of this vector.
the component whose value to set, within [0..2]
the value to set
this
Subtract the supplied vector from this one and store the result in this
.
this
Decrement the components of this vector by the given values.
the x component to subtract
the y component to subtract
the z component to subtract
this
Return a string representation of this vector.
the string representation
Set all components to zero.
this
Return the distance between (x1, y1, z1)
and (x2, y2, z2)
.
the x component of the first vector
the y component of the first vector
the z 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 euclidean distance
Return the squared distance between (x1, y1, z1)
and (x2, y2, z2)
.
the x component of the first vector
the y component of the first vector
the z 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 euclidean distance squared
Get the length squared of a 3-dimensional single-precision vector.
The vector's x component
The vector's y component
The vector's z component
the length squared of the given vector
Generated using TypeDoc
Create a new Vector3 of
(0, 0, 0)
.