Uses of Class
com.xebisco.yield.Vector2D
Packages that use Vector2D
Package
Description
-
Uses of Vector2D in com.xebisco.yield
Subclasses of Vector2D in com.xebisco.yieldModifier and TypeClassDescriptionclassFields in com.xebisco.yield declared as Vector2DMethods in com.xebisco.yield that return Vector2DModifier and TypeMethodDescriptionVector2D.absolute()This method returns a new Vector2D object with absolute values of x and y coordinates.Vector2D.absoluteLocal()The function returns the absolute value of the x and y coordinates of a Vector2D object.Gets a 2D axis vector based on the specified x and y-axis names.Vector2D.divide(double value) This Java function returns a new Vector2D object that is the result of dividing the current object by the input object.Vector2D.divideLocal(double value) Vector2D.divideLocal(Vector2D a) Divide the x and y values of this object by the x and y values of the given object.Vector2D.invert()The function inverts a Vector2D object by multiplying it with a new object with negative values.Vector2D.invertLocal()This function inverts a Vector2D object locally by multiplying it with -1.Application.mousePosition()Gets the current mouse position.Vector2D.multiply(double value) This method returns the result of multiplying two instances of the Vector2D class.Vector2D.multiplyLocal(double value) This method multiplies the x and y values of a Vector2D object by a given value and returns the object.Vector2D.multiplyLocal(Vector2D a) Multiply the x and y values of this object by the x and y values of the given object.static Vector2DGlobal.onSizeBoundary(Vector2D size, Vector2D boundary) The function resizes a given size to fit within a specified boundary while maintaining its aspect ratio.Transform2D.position()Returns the position of the object.Vector2D.reset()Resets thisVector2Dinstance to the origin(0, 0).Transform2D.scale()Returns the scale of the object.Vector2D.set(double x, double y) Sets the x and y coordinates of thisVector2Dinstance.ImmutableVector2D.setX(double x) Vector2D.setX(double x) This function sets the value of the x variable to the value of the x parameter.ImmutableVector2D.setY(double y) Vector2D.setY(double y) This function sets the y coordinate of the point to the value of the parameter y.RectangleMesh.size()Gets the size of the rectangle mesh.Vector2D.subtractLocal(Vector2D a) static Vector2DVector2D.vector2D(int degrees, double intensity) The function returns a 2D vector with a given angle in degrees and intensity.Application.viewportSize()Gets the viewport size.PlatformInit.viewportSize()Gets the initial viewport size.PlatformInit.windowSize()Gets the initial window size.Methods in com.xebisco.yield with parameters of type Vector2DModifier and TypeMethodDescriptionThis Java function returns a new Vector2D object that is the result of dividing the current object by the input object.Vector2D.divideLocal(Vector2D a) Divide the x and y values of this object by the x and y values of the given object.This method returns the result of multiplying two instances of the Vector2D class.Vector2D.multiplyLocal(Vector2D a) Multiply the x and y values of this object by the x and y values of the given object.static Vector2DGlobal.onSizeBoundary(Vector2D size, Vector2D boundary) The function resizes a given size to fit within a specified boundary while maintaining its aspect ratio.voidScales theTransform2Dobject using aVector2D.Sets the size of the rectangle mesh.PlatformInit.setViewportSize(Vector2D viewportSize) Sets the initial viewport size.PlatformInit.setWindowSize(Vector2D windowSize) Sets the initial window size.Vector2D.subtractLocal(Vector2D a) voidTranslates the position of the object by adding aVector2Dvalue to it.Constructors in com.xebisco.yield with parameters of type Vector2D -
Uses of Vector2D in com.xebisco.yield.manager
Methods in com.xebisco.yield.manager that return Vector2DMethods in com.xebisco.yield.manager with parameters of type Vector2DModifier and TypeMethodDescriptionTextureManager.loadSpritesheetTexture(SpritesheetTexture spritesheetTexture, Vector2D size, FileIOManager ioManager) TextureManager.loadTexture(AbstractTexture texture, Vector2D size, FileIOManager ioManager) -
Uses of Vector2D in com.xebisco.yield.physics
Methods in com.xebisco.yield.physics that return Vector2DModifier and TypeMethodDescriptionPhysicsSystem.gravity()static Vector2DUtils.toVector2D(org.jbox2d.common.Vec2 v) Methods in com.xebisco.yield.physics with parameters of type Vector2DModifier and TypeMethodDescriptionvoidPhysicsBody.applyForce(Vector2D force) voidPhysicsBody.applyLinearImpulse(Vector2D impulse) PhysicsSystem.setGravity(Vector2D gravity) PhysicsBody.setLinearVelocity(Vector2D linearVelocity) static org.jbox2d.common.Vec2 -
Uses of Vector2D in com.xebisco.yield.physics.colliders
Methods in com.xebisco.yield.physics.colliders that return Vector2DMethods in com.xebisco.yield.physics.colliders with parameters of type Vector2DModifier and TypeMethodDescription -
Uses of Vector2D in com.xebisco.yield.rendering
Methods in com.xebisco.yield.rendering that return Vector2DModifier and TypeMethodDescriptionPaint.rectSize()Returns the size of the rectangle to be drawn.Methods in com.xebisco.yield.rendering with parameters of type Vector2DModifier and TypeMethodDescriptionPaint.setRectSize(Vector2D rectSize) Sets the size of the rectangle in which the object will be drawn. -
Uses of Vector2D in com.xebisco.yield.texture
Constructors in com.xebisco.yield.texture with parameters of type Vector2DModifierConstructorDescriptionTexture(Object imageRef, Vector2D size, String path, TextureFilter filter, TextureManager textureManager, FileIOManager ioManager) Constructs a newTextureobject from an image reference and size.