Modifier and Type | Method and Description |
---|---|
Vector4 |
abs()
Absolute-values this vector.
|
Vector4 |
abs(Vector4 result)
Absolute-values this vector, storing the result in the supplied object.
|
boolean |
epsilonEquals(IVector4 other,
float epsilon)
Compares this vector to another with the provided epsilon.
|
FloatBuffer |
get(FloatBuffer buf)
Populates the supplied buffer with the contents of this vector.
|
Vector4 |
mult(float v)
Multiplies this vector by a scalar.
|
Vector4 |
mult(float v,
Vector4 result)
Multiplies this vector by a scalar and places the result in the supplied object.
|
Vector4 |
mult(IMatrix4 matrix)
Multiplies this vector by a matrix (V * M).
|
Vector4 |
mult(IMatrix4 matrix,
Vector4 result)
Multiplies this vector by a matrix (V * M) and stores the result in the object provided.
|
Vector4 |
negate()
Negates this vector.
|
Vector4 |
negate(Vector4 result)
Negates this vector, storing the result in the supplied object.
|
float |
w()
Returns the w-component of this vector.
|
float |
x()
Returns the x-component of this vector.
|
float |
y()
Returns the y-component of this vector.
|
float |
z()
Returns the z-component of this vector.
|
float x()
float y()
float z()
float w()
FloatBuffer get(FloatBuffer buf)
boolean epsilonEquals(IVector4 other, float epsilon)
Vector4 negate()
Vector4 negate(Vector4 result)
Vector4 abs()
Vector4 abs(Vector4 result)
Vector4 mult(float v)
Vector4 mult(float v, Vector4 result)
Vector4 mult(IMatrix4 matrix)
Copyright © 2017. All rights reserved.