Uses of Class
io.github.espressoengine.Vector2
Packages that use Vector2
Package
Description
-
Uses of Vector2 in io.github.espressoengine
Methods in io.github.espressoengine that return Vector2Modifier and TypeMethodDescriptionVector2.add
(double amplitude, double direction) Returns a new vector with the current vector's position but moved toward a direction (in radians) by an amplitude.Returns a new vector with its position added from both the current vector and parametervector
.Vector2.clamp
(double min, double max) Returns a new vector withUtils.clamp
used on both the x and y values for the vector.Returns a new vector withUtils.clamp
used on both the x and y values for the vector.Vector2.mult
(double factor) Returns a new vector whose position is the current vector's multiplied by a factor.Returns a new vector whose position is the current vector's multiplied by parametervector
's position.Returns a new vector with its position being the current vector's subtracted by parametervector
.Methods in io.github.espressoengine with parameters of type Vector2Modifier and TypeMethodDescriptionReturns a new vector with its position added from both the current vector and parametervector
.Returns a new vector withUtils.clamp
used on both the x and y values for the vector.boolean
Returns true if two vectors have the same position.Returns a new vector whose position is the current vector's multiplied by parametervector
's position.void
Sets the position of the vector to that of another vector.Returns a new vector with its position being the current vector's subtracted by parametervector
.Constructors in io.github.espressoengine with parameters of type Vector2 -
Uses of Vector2 in io.github.espressoengine.object
Fields in io.github.espressoengine.object declared as Vector2Methods in io.github.espressoengine.object that return Vector2Modifier and TypeMethodDescriptionObject.getBoundingBoxPosition()
Returns the position of an object's bounding box.Methods in io.github.espressoengine.object with parameters of type Vector2Modifier and TypeMethodDescriptionvoid
Rotates an object to point at aVector2
Constructors in io.github.espressoengine.object with parameters of type Vector2 -
Uses of Vector2 in io.github.espressoengine.physics
Fields in io.github.espressoengine.physics declared as Vector2Methods in io.github.espressoengine.physics with parameters of type Vector2Modifier and TypeMethodDescriptionvoid
RigidBody.checkScreenCollisions
(Vector2 bounds) Checks collisions with the edges of the screen and updates the velocity of the object accordingly.