Uses of Class
net.risingworld.api.utils.Vector2f
Packages that use Vector2f
Package
Description
-
Uses of Vector2f in net.risingworld.api.assets
Methods in net.risingworld.api.assets that return Vector2fMethods in net.risingworld.api.assets that return types with arguments of type Vector2fMethods in net.risingworld.api.assets with parameters of type Vector2fModifier and TypeMethodDescriptionvoidvoidMethod parameters in net.risingworld.api.assets with type arguments of type Vector2f -
Uses of Vector2f in net.risingworld.api.ui
Methods in net.risingworld.api.ui with parameters of type Vector2fModifier and TypeMethodDescriptionvoidUIPainter2D.arc(Vector2f center, float radius, int startAngle, int endAngle, UIPainter2D.ArcDirection direction) voidvoidUIPainter2D.bezierCurveTo(Vector2f p1, Vector2f p2, Vector2f p3) voidvoidvoidUIPainter2D.quadraticCurveTo(Vector2f p1, Vector2f p2) voidUIMesh.setNextVertex(Vector2f position, float r, float g, float b, float a) voidUIMesh.setNextVertex(Vector2f position, ColorRGBA color) voidUIMesh.setNextVertex(Vector2f position, Vector2f uv) voidUIMesh.setNextVertex(Vector2f position, Vector2f uv, float r, float g, float b, float a) -
Uses of Vector2f in net.risingworld.api.utils
Fields in net.risingworld.api.utils declared as Vector2fModifier and TypeFieldDescriptionstatic final Vector2fVector2f.ONEA vector with values 1, 1static final Vector2fVector2f.ZEROA vector with values 0, 0Methods in net.risingworld.api.utils that return Vector2fModifier and TypeMethodDescriptionVector2f.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);).Methods in net.risingworld.api.utils with parameters of type Vector2fModifier and TypeMethodDescriptionAdds the values of the provided vector to the values of this vector.floatVector2f.angleBetween(Vector2f other) Gets the angle between this vector and another vector.
Please note: Both vectors need to be unit vectors (normalized).floatGets the distance between this vector and another vector.floatVector2f.distanceSquared(Vector2f other) Gets the squared distance between this vector and another Vector2f.Vector2f.divideLocal(Vector2f other) floatGets the dot product of this vector with the provided vector.booleanVector2f.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.Constructors in net.risingworld.api.utils with parameters of type Vector2f -
Uses of Vector2f in net.risingworld.api.worldelements
Methods in net.risingworld.api.worldelements with parameters of type Vector2fModifier and TypeMethodDescriptionvoidPrefab.setMaterialParameter(String path, String parameter, Vector2f value) Sets a material parameter.voidPrefab.setVFXParameter(String path, String parameter, Vector2f value)