| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | Vector4f(float
the x coordinate x, float the y coordinate y, float the z coordinate z, float the w coordinate w)Constructs and initializes a Vector4f from the specified xyzw coordinates. |
| public | Vector4f(float[]
the array of length 4 containing xyzw in order v)Constructs and initializes a Vector4f from the array of length 4. |
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final float | |
| public final float | |
| public final float | |
| public final float | Returns: the squared length of this vector as a floatReturns the squared length of this vector |
| public final void | |
| public final void | |
| public final void |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| Vector4f | back to summary |
|---|---|
| public Vector4f(float x, float y, float z, float w) Constructs and initializes a Vector4f from the specified xyzw coordinates.
| |
| Vector4f | back to summary |
|---|---|
| public Vector4f(float[] v) Constructs and initializes a Vector4f from the array of length 4.
| |
| Vector4f | back to summary |
|---|---|
| public Vector4f(Vector4f v1) Constructs and initializes a Vector4f from the specified Vector4f.
| |
| Vector4f | back to summary |
|---|---|
| public Vector4f(Vector4d v1) Constructs and initializes a Vector4f from the specified Vector4d.
| |
| Vector4f | back to summary |
|---|---|
| public Vector4f(Tuple4f t1) Constructs and initializes a Vector4f from the specified Tuple4f.
| |
| Vector4f | back to summary |
|---|---|
| public Vector4f(Tuple4d t1) Constructs and initializes a Vector4f from the specified Tuple4d.
| |
| Vector4f | back to summary |
|---|---|
| public Vector4f(Tuple3f t1) Constructs and initializes a Vector4f from the specified Tuple3f. The x,y,z components of this vector are set to the corresponding components of tuple t1. The w component of this vector is set to 0.
| |
| Vector4f | back to summary |
|---|---|
| public Vector4f() Constructs and initializes a Vector4f to (0,0,0,0). | |
| angle | back to summary |
|---|---|
| public final float angle(Vector4f v1) Returns the (4-space) angle in radians between this vector and the vector parameter; the return value is constrained to the range [0,PI].
| |
| dot | back to summary |
|---|---|
| public final float dot(Vector4f v1) returns the dot product of this vector and v1
| |
| length | back to summary |
|---|---|
| public final float length() Returns the length of this vector.
| |
| lengthSquared | back to summary |
|---|---|
| public final float lengthSquared() Returns the squared length of this vector
| |
| normalize | back to summary |
|---|---|
| public final void normalize(Vector4f v1) Sets the value of this vector to the normalization of vector v1.
| |
| normalize | back to summary |
|---|---|
| public final void normalize() Normalizes this vector in place. | |
| set | back to summary |
|---|---|
| public final void set(Tuple3f t1) Sets the x,y,z components of this vector to the corresponding components of tuple t1. The w component of this vector is set to 0.
| |