Uses of Class
de.arstwo.twotil.math.Vector4f
Packages that use Vector4f
-
Uses of Vector4f in de.arstwo.twotil.math
Methods in de.arstwo.twotil.math that return Vector4fModifier and TypeMethodDescriptionVector4f.add(float x, float y, float z) Adds the given values to this vector.Adds the given vector to this vector.Vector4f.addX(float x) Adds a specific value to the x component of this vector.Vector4f.addY(float y) Adds a specific value to the y component of this vector.Vector4f.addZ(float z) Adds a specific value to the z component of this vector.Vector4f.clone()Calculates the cross product between this vector and another.Vector4f.normalize()Normalizes this vector to a length of 1.Vector4f.scale(float magnitude) Scales this vector by the given magnitude.Vector4f.set(float[] data) Sets all values of this vector to those of a given float array.Vector4f.set(float x, float y, float z) Sets the vector to the given values without changing the W value.Copy constructor.Vector4f.setIsDirection()Sets this vector to be a directional vector.Vector4f.setIsPosition()Sets this vector to be a position (point in space) vector.protected Vector4fVector4f.setUnchecked(float[] data) Internal function to set the data of this vector without checking it.Vector4f.setX(float x) Sets the x value of this vector.Vector4f.setY(float y) Sets the y value of this vector.Vector4f.setZ(float z) Sets the z value of this vector.Vector4f.setZero()Sets the x,y,z content of this vector to all zero.Vector4f.setZeroDirection()Sets the x,y,z content of this vector to all zero and turns it into a directional vector.Vector4f.setZeroPosition()Sets the x,y,z content of this vector to all zero and turns it into a position (point in space).Vector4f.shear(float x, float y, float z) Shears this vector with the given vector components.Vector4f.shearX(float x) Shears this vector on the x-axis only.Vector4f.shearY(float y) Shears this vector on the y-axis only.Vector4f.shearZ(float z) Shears this vector on the z-axis only.Vector4f.sub(float x, float y, float z) Subtracts the given values to this vector.Subtracts the given vector to this vector.Vector4f.subX(float x) Subtracts a specific value to the x component of this vector.Vector4f.subY(float y) Subtracts a specific value to the y component of this vector.Vector4f.subZ(float z) Subtracts a specific value to the z component of this vector.Transforms this vector using the given matrix.Translates this vector using the given matrix.Methods in de.arstwo.twotil.math with parameters of type Vector4fModifier and TypeMethodDescriptionAdds the given vector to this vector.Calculates the cross product between this vector and another.floatCalculates the dot product between this vector and another.booleanRotates this matrix around a given axis.Copy constructor.Sets this matrix to a look matrix (an imaginary camera in 3D space looking into a specific direction) with the given Vector4f values.Matrix4f.setRotation(float radians, Vector4f axis) Sets this matrix to be a fixed rotation around a given axis.Subtracts the given vector to this vector.Translates this matrix by the given Vector4f.