Verwendungen von Klasse
net.risingworld.api.utils.Vector4f
Package
Beschreibung
-
Verwendungen von Vector4f in net.risingworld.api.assets
Modifizierer und TypMethodeBeschreibungvoid
MeshAsset.addTangents
(ArrayList<Vector4f> tangents) void
MeshAsset.setTangents
(ArrayList<Vector4f> tangents) -
Verwendungen von Vector4f in net.risingworld.api.utils
Modifizierer und TypFeldBeschreibungstatic final Vector4f
Vector4f.ONE
A vector with values 1, 1, 1, 1static final Vector4f
Vector4f.UNIT_W
A unit vector along the W axisstatic final Vector4f
Vector4f.UNIT_X
A unit vector along the X axisstatic final Vector4f
Vector4f.UNIT_Y
A unit vector along the Y axisstatic final Vector4f
Vector4f.UNIT_Z
A unit vector along the Z axisstatic final Vector4f
Vector4f.ZERO
A vector with values 0, 0, 0, 0Modifizierer und TypMethodeBeschreibungVector4f.add
(float addX, float addY, float addZ, float addW) Creates a new vector with the same values of this vector and adds the provided values.Creates a new vector with the same values of this vector and adds the values of the provided vector.Vector4f.addLocal
(float addX, float addY, float addZ, float addW) Adds the provided values to the values of this vector.Adds the values of the provided vector to the values of this vector.Vector4f.copy()
Creates a copy of this Vector.Creates a new vector with the same values of this vector and divides the values of the provided vector.Vector4f.divideLocal
(float scalar) Vector4f.divideLocal
(Vector4f other) Vector4f.interpolateLocal
(Vector4f finalVector, float mu) Interpolates this vector to the provided final vector, e.g if this vector is (0, 5, 10, 0), and the final vector is (-10, 0, 10, 0), the result (by using a mu-value of 0.5f) would be (-5, 2.5f, 10, 0)Vector4f.mult
(float scalar) Creates a new vector with the same values of this vector and multiplies them with the provided scalar.Vector4f.mult
(float multX, float multY, float multZ, float multW) Creates a new vector with the same values of this vector and multiplies the provided values.Creates a new vector with the same values of this vector and multiplies the values of the provided vector.Vector4f.multLocal
(float scalar) Multiplies the values of this vector with the provided scalar.Vector4f.multLocal
(float multX, float multY, float multZ, float multW) Multiplies the values of this vector with the provided values.Multiplies the values of this vector with the values of the provided vector.Vector4f.negate()
Creates a new vector which contains negated values of this vector.Vector4f.negateLocal()
Negates all values of this vector.Vector4f.normalizeLocal()
Normalizes this vector (i.e turn it into a unit vector).Vector4f.set
(float x, float y, float z, float w) Sets the x, y, z and w values of this vector to the provided values.Sets the x, y, z and w values of this vector to the values of the provided vector.Vector4f.setW
(float w) Sets the w value of this vector.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.subtract
(float subtractX, float subtractY, float subtractZ, float subtractW) Creates a new vector with the same values of this vector and subtracts the provided values.Creates a new vector with the same values of this vector and subtracts the values of the provided vector.Vector4f.subtractLocal
(float subtractX, float subtractY, float subtractZ, float subtractW) Subtracts the provided values from the values of this vector.Vector4f.subtractLocal
(Vector4f other) Subtracts the values of the provided vector from the values of this vector.ColorRGBA.toVector4f()
Vector4f.zero()
Sets all values to 0 (same setset(0, 0, 0, 0);
).Modifizierer und TypMethodeBeschreibungCreates a new vector with the same values of this vector and adds the values of the provided vector.Adds the values of the provided vector to the values of this vector.float
Vector4f.angleBetween
(Vector4f other) Gets the angle between this vector and another vector.
Please note: Both vectors need to be unit vectors (normalized).float
Gets the distance between this vector and another vector.float
Vector4f.distanceSquared
(Vector4f other) Gets the squared distance between this vector and another Vector4f.Creates a new vector with the same values of this vector and divides the values of the provided vector.Vector4f.divideLocal
(Vector4f other) float
Gets the dot product of this vector with the provided vector.Vector4f.interpolateLocal
(Vector4f finalVector, float mu) Interpolates this vector to the provided final vector, e.g if this vector is (0, 5, 10, 0), and the final vector is (-10, 0, 10, 0), the result (by using a mu-value of 0.5f) would be (-5, 2.5f, 10, 0)Creates a new vector with the same values of this vector and multiplies the values of the provided vector.Multiplies the values of this vector with the values of the provided vector.Sets the x, y, z and w values of this vector to the values of the provided vector.Creates a new vector with the same values of this vector and subtracts the values of the provided vector.Vector4f.subtractLocal
(Vector4f other) Subtracts the values of the provided vector from the values of this vector. -
Verwendungen von Vector4f in net.risingworld.api.worldelements
Modifizierer und TypMethodeBeschreibungvoid
Prefab.setMaterialParameter
(String path, String parameter, Vector4f value) Sets a material parameter.void
Prefab.setVFXParameter
(String path, String parameter, Vector4f value)