Verwendungen von Klasse
net.risingworld.api.utils.Vector2f
Package
Beschreibung
-
Verwendungen von Vector2f in net.risingworld.api.assets
Modifizierer und TypMethodeBeschreibungvoid
void
-
Verwendungen von Vector2f in net.risingworld.api.ui
Modifizierer und TypMethodeBeschreibungvoid
UIPainter2D.arc
(Vector2f center, float radius, int startAngle, int endAngle, UIPainter2D.ArcDirection direction) void
void
UIPainter2D.bezierCurveTo
(Vector2f p1, Vector2f p2, Vector2f p3) void
void
void
UIPainter2D.quadraticCurveTo
(Vector2f p1, Vector2f p2) void
UIMesh.setNextVertex
(Vector2f position, float r, float g, float b, float a) void
UIMesh.setNextVertex
(Vector2f position, ColorRGBA color) void
UIMesh.setNextVertex
(Vector2f position, Vector2f uv) void
UIMesh.setNextVertex
(Vector2f position, Vector2f uv, float r, float g, float b, float a) -
Verwendungen von Vector2f in net.risingworld.api.utils
Modifizierer und TypFeldBeschreibungstatic final Vector2f
Vector2f.ONE
A vector with values 1, 1static final Vector2f
Vector2f.ZERO
A vector with values 0, 0Modifizierer und TypMethodeBeschreibungVector2f.addLocal
(float addX, float addY) Adds the provided values to the values of this vector.Adds the values of the provided vector to the values of this vector.Vector2f.copy()
Creates a copy of this Vector.Vector2f.divideLocal
(float scalar) Vector2f.divideLocal
(Vector2f other) Vector2f.multLocal
(float scalar) Multiplies the values of this vector with the provided scalar.Vector2f.multLocal
(float multX, float multY) Multiplies the values of this vector with the provided values.Multiplies the values of this vector with the values of the provided vector.Vector2f.negateLocal()
Negates all values of this vector.Vector2f.normalizeLocal()
Normalizes this vector (i.e turn it into a unit vector).Vector2f.set
(float x, float y) Sets the x, y and z values of this vector to the provided values.Sets the x and y values of this vector to the values of the provided vector.Vector2f.setX
(float x) Sets the x value of this vector.Vector2f.setY
(float y) Sets the y value of this vector.Vector2f.subtractLocal
(float subtractX, float subtractY) Subtracts the provided values from the values of this vector.Vector2f.subtractLocal
(Vector2f other) Subtracts the values of the provided vector from the values of this vector.Vector2f.zero()
Sets all values to 0 (same setset(0, 0);
).Modifizierer und TypMethodeBeschreibungAdds the values of the provided vector to the values of this vector.float
Vector2f.angleBetween
(Vector2f 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
Vector2f.distanceSquared
(Vector2f other) Gets the squared distance between this vector and another Vector2f.Vector2f.divideLocal
(Vector2f other) float
Gets the dot product of this vector with the provided vector.boolean
Vector2f.isOrthogonal
(Vector2f other) Checks if this vector is orthogonal to another vector (i.e the angle between both vectors is ~ 90° degree).Multiplies the values of this vector with the values of the provided vector.Sets the x and y values of this vector to the values of the provided vector.Vector2f.subtractLocal
(Vector2f other) Subtracts the values of the provided vector from the values of this vector. -
Verwendungen von Vector2f in net.risingworld.api.worldelements
Modifizierer und TypMethodeBeschreibungvoid
Prefab.setMaterialParameter
(String path, String parameter, Vector2f value) Sets a material parameter.void
Prefab.setVFXParameter
(String path, String parameter, Vector2f value)