Uses of Class
com.badlogic.gdx.math.Vector2
-
-
Uses of Vector2 in com.badlogic.gdx.graphics
Methods in com.badlogic.gdx.graphics with parameters of type Vector2 Modifier and Type Method Description voidOrthographicCamera. translate(Vector2 vec)Moves the camera by the given vector. -
Uses of Vector2 in com.badlogic.gdx.graphics.g3d.decals
Fields in com.badlogic.gdx.graphics.g3d.decals declared as Vector2 Modifier and Type Field Description protected Vector2Decal. dimensionsprotected Vector2Decal. scaleVector2Decal. transformationOffsetThe transformation offset can be used to change the pivot point for rotation and scaling. -
Uses of Vector2 in com.badlogic.gdx.graphics.g3d.loader
Methods in com.badlogic.gdx.graphics.g3d.loader that return Vector2 Modifier and Type Method Description protected Vector2G3dModelLoader. readVector2(JsonValue vectorArray, float x, float y) -
Uses of Vector2 in com.badlogic.gdx.graphics.g3d.model.data
Fields in com.badlogic.gdx.graphics.g3d.model.data declared as Vector2 Modifier and Type Field Description Vector2ModelTexture. uvScalingVector2ModelTexture. uvTranslation -
Uses of Vector2 in com.badlogic.gdx.graphics.g3d.shaders
Methods in com.badlogic.gdx.graphics.g3d.shaders with parameters of type Vector2 Modifier and Type Method Description booleanBaseShader. set(int uniform, Vector2 value) -
Uses of Vector2 in com.badlogic.gdx.graphics.g3d.utils
Fields in com.badlogic.gdx.graphics.g3d.utils declared as Vector2 Modifier and Type Field Description Vector2MeshPartBuilder.VertexInfo. uvMethods in com.badlogic.gdx.graphics.g3d.utils with parameters of type Vector2 Modifier and Type Method Description booleanCameraInputController.CameraGestureListener. pinch(Vector2 initialPointer1, Vector2 initialPointer2, Vector2 pointer1, Vector2 pointer2)MeshPartBuilder.VertexInfoMeshPartBuilder.VertexInfo. set(Vector3 pos, Vector3 nor, Color col, Vector2 uv)MeshPartBuilder.VertexInfoMeshPartBuilder.VertexInfo. setUV(Vector2 uv)shortMeshBuilder. vertex(Vector3 pos, Vector3 nor, Color col, Vector2 uv)shortMeshPartBuilder. vertex(Vector3 pos, Vector3 nor, Color col, Vector2 uv)Add a vertex, returns the index. -
Uses of Vector2 in com.badlogic.gdx.graphics.glutils
Methods in com.badlogic.gdx.graphics.glutils with parameters of type Vector2 Modifier and Type Method Description voidShapeRenderer. line(Vector2 v0, Vector2 v1)voidShapeRenderer. rectLine(Vector2 p1, Vector2 p2, float width)voidShaderProgram. setUniformf(int location, Vector2 values)voidShaderProgram. setUniformf(java.lang.String name, Vector2 values)Sets the uniform with the given name.voidShapeRenderer. x(Vector2 p, float size) -
Uses of Vector2 in com.badlogic.gdx.input
Methods in com.badlogic.gdx.input with parameters of type Vector2 Modifier and Type Method Description booleanGestureDetector.GestureAdapter. pinch(Vector2 initialPointer1, Vector2 initialPointer2, Vector2 pointer1, Vector2 pointer2)booleanGestureDetector.GestureListener. pinch(Vector2 initialPointer1, Vector2 initialPointer2, Vector2 pointer1, Vector2 pointer2)Called when a user performs a pinch zoom gesture. -
Uses of Vector2 in com.badlogic.gdx.math
Fields in com.badlogic.gdx.math declared as Vector2 Modifier and Type Field Description Vector2Intersector.MinimumTranslationVector. normalUnit length vector that indicates the direction for the separationstatic Vector2Vector2. Xstatic Vector2Vector2. Ystatic Vector2Vector2. ZeroMethods in com.badlogic.gdx.math that return Vector2 Modifier and Type Method Description Vector2Vector2. add(float x, float y)Adds the given components to this vectorVector2Vector2. add(Vector2 v)Vector2Vector2. clamp(float min, float max)Vector2Vector2. cpy()static Vector2GeometryUtils. fromBarycoord(Vector2 barycentric, Vector2 a, Vector2 b, Vector2 c, Vector2 interpolatedOut)Returns interpolated values given the barycentric coordinates of a point in a triangle and the values at each vertex.Vector2Vector2. fromString(java.lang.String v)Sets thisVector2to the value represented by the specified string according to the format oftoString().Vector2Rectangle. getCenter(Vector2 vector)Calculates the center of the rectangle.Vector2Polygon. getCentroid(Vector2 centroid)Vector2Rectangle. getPosition(Vector2 position)return the Vector2 with coordinates of this rectangleVector2Matrix3. getScale(Vector2 scale)Vector2Rectangle. getSize(Vector2 size)Vector2Affine2. getTranslation(Vector2 position)Get the x-y translation component of the matrix.Vector2Matrix3. getTranslation(Vector2 position)Vector2Polygon. getVertex(int vertexNum, Vector2 pos)Vector2Vector2. interpolate(Vector2 target, float alpha, Interpolation interpolation)Vector2Vector2. lerp(Vector2 target, float alpha)Vector2Vector2. limit(float limit)Vector2Vector2. limit2(float limit2)Vector2Vector2. mul(Matrix3 mat)Left-multiplies this vector by the given matrixVector2Vector2. mulAdd(Vector2 vec, float scalar)Vector2Vector2. mulAdd(Vector2 vec, Vector2 mulVec)static Vector2Intersector. nearestSegmentPoint(float startX, float startY, float endX, float endY, float pointX, float pointY, Vector2 nearest)Returns a point on the segment nearest to the specified point.static Vector2Intersector. nearestSegmentPoint(Vector2 start, Vector2 end, Vector2 point, Vector2 nearest)Returns a point on the segment nearest to the specified point.Vector2Vector2. nor()static Vector2GeometryUtils. polygonCentroid(float[] polygon, int offset, int count, Vector2 centroid)Returns the centroid for the specified non-self-intersecting polygon.static Vector2GeometryUtils. quadrilateralCentroid(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, Vector2 centroid)Vector2Vector2. rotate(float degrees)Deprecated.userotateDeg(float)instead.Vector2Vector2. rotate90(int dir)Rotates the Vector2 by 90 degrees in the specified direction, where >= 0 is counter-clockwise and < 0 is clockwise.Vector2Vector2. rotateAround(Vector2 reference, float degrees)Deprecated.userotateAroundDeg(Vector2, float)instead.Vector2Vector2. rotateAroundDeg(Vector2 reference, float degrees)Rotates the Vector2 by the given angle around reference vector, counter-clockwise assuming the y-axis points up.Vector2Vector2. rotateAroundRad(Vector2 reference, float radians)Rotates the Vector2 by the given angle around reference vector, counter-clockwise assuming the y-axis points up.Vector2Vector2. rotateDeg(float degrees)Rotates the Vector2 by the given angle, counter-clockwise assuming the y-axis points up.Vector2Vector2. rotateRad(float radians)Rotates the Vector2 by the given angle, counter-clockwise assuming the y-axis points up.Vector2Vector2. scl(float scalar)Vector2Vector2. scl(float x, float y)Multiplies this vector by a scalarVector2Vector2. scl(Vector2 v)Vector2Vector2. set(float x, float y)Sets the components of this vectorVector2Vector2. set(Vector2 v)Vector2Vector2. setAngle(float degrees)Deprecated.usesetAngleDeg(float)instead.Vector2Vector2. setAngleDeg(float degrees)Sets the angle of the vector in degrees relative to the x-axis, towards the positive y-axis (typically counter-clockwise).Vector2Vector2. setAngleRad(float radians)Sets the angle of the vector in radians relative to the x-axis, towards the positive y-axis (typically counter-clockwise).Vector2Vector2. setLength(float len)Vector2Vector2. setLength2(float len2)Vector2Vector2. setToRandomDirection()Vector2Vector2. setZero()Vector2Vector2. sub(float x, float y)Subtracts the other vector from this vector.Vector2Vector2. sub(Vector2 v)static Vector2GeometryUtils. toBarycoord(Vector2 p, Vector2 a, Vector2 b, Vector2 c, Vector2 barycentricOut)Computes the barycentric coordinates v,w for the specified point in the triangle.static Vector2GeometryUtils. triangleCentroid(float x1, float y1, float x2, float y2, float x3, float y3, Vector2 centroid)static Vector2GeometryUtils. triangleCircumcenter(float x1, float y1, float x2, float y2, float x3, float y3, Vector2 circumcenter)Returns the circumcenter of the triangle.Methods in com.badlogic.gdx.math with parameters of type Vector2 Modifier and Type Method Description Vector2Vector2. add(Vector2 v)floatVector2. angle(Vector2 reference)Deprecated.useangleDeg(Vector2)instead.floatVector2. angleDeg(Vector2 reference)floatVector2. angleRad(Vector2 reference)voidAffine2. applyTo(Vector2 point)Applies the affine transformation on a vector.static booleanGeometryUtils. barycoordInsideTriangle(Vector2 barycentric)Returns true if the barycentric coordinates are inside the triangle.booleanCircle. contains(Vector2 point)Checks whether or not this circle contains a given point.booleanEllipse. contains(Vector2 point)Checks whether or not this ellipse contains the given point.booleanPolygon. contains(Vector2 point)booleanPolyline. contains(Vector2 point)booleanRectangle. contains(Vector2 point)booleanShape2D. contains(Vector2 point)Returns whether the given point is contained within the shape.floatVector2. crs(Vector2 v)Calculates the 2D cross product between this and the given vector.static floatIntersector. distanceSegmentPoint(Vector2 start, Vector2 end, Vector2 point)Returns the distance between the given segment and point.floatVector2. dot(Vector2 v)floatVector2. dst(Vector2 v)floatVector2. dst2(Vector2 v)booleanVector2. epsilonEquals(Vector2 other)Compares this vector with the other vector using MathUtils.FLOAT_ROUNDING_ERROR for fuzzy equality testingbooleanVector2. epsilonEquals(Vector2 other, float epsilon)static floatGeometryUtils. fromBarycoord(Vector2 barycentric, float a, float b, float c)Returns an interpolated value given the barycentric coordinates of a point in a triangle and the values at each vertex.static Vector2GeometryUtils. fromBarycoord(Vector2 barycentric, Vector2 a, Vector2 b, Vector2 c, Vector2 interpolatedOut)Returns interpolated values given the barycentric coordinates of a point in a triangle and the values at each vertex.Vector2Rectangle. getCenter(Vector2 vector)Calculates the center of the rectangle.Vector2Polygon. getCentroid(Vector2 centroid)Vector2Rectangle. getPosition(Vector2 position)return the Vector2 with coordinates of this rectangleVector2Matrix3. getScale(Vector2 scale)Vector2Rectangle. getSize(Vector2 size)Vector2Affine2. getTranslation(Vector2 position)Get the x-y translation component of the matrix.Vector2Matrix3. getTranslation(Vector2 position)Vector2Polygon. getVertex(int vertexNum, Vector2 pos)booleanVector2. hasOppositeDirection(Vector2 vector)booleanVector2. hasSameDirection(Vector2 vector)booleanVector2. idt(Vector2 vector)Returns true if this vector and the vector parameter have identical components.Vector2Vector2. interpolate(Vector2 target, float alpha, Interpolation interpolation)static booleanIntersector. intersectLinePolygon(Vector2 p1, Vector2 p2, Polygon polygon)Check whether the given line andPolygonintersect.static booleanIntersector. intersectLines(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, Vector2 intersection)Intersects the two lines and returns the intersection point in intersection.static booleanIntersector. intersectLines(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 intersection)Intersects the two lines and returns the intersection point in intersection.static floatIntersector. intersectRayRay(Vector2 start1, Vector2 direction1, Vector2 start2, Vector2 direction2)Intersect two 2D Rays and return the scalar parameter of the first ray at the intersection point.static booleanIntersector. intersectSegmentCircle(Vector2 start, Vector2 end, Circle circle, Intersector.MinimumTranslationVector mtv)Returns whether the given line segment intersects the given circle.static booleanIntersector. intersectSegmentCircle(Vector2 start, Vector2 end, Vector2 center, float squareRadius)Returns whether the given line segment intersects the given circle.static booleanIntersector. intersectSegmentPolygon(Vector2 p1, Vector2 p2, Polygon polygon)Check whether the given line segment andPolygonintersect.static booleanIntersector. intersectSegmentRectangle(Vector2 start, Vector2 end, Rectangle rectangle)static booleanIntersector. intersectSegments(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, Vector2 intersection)static booleanIntersector. intersectSegments(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 intersection)Intersects the two line segments and returns the intersection point in intersection.booleanVector2. isCollinear(Vector2 other)booleanVector2. isCollinear(Vector2 other, float epsilon)booleanVector2. isCollinearOpposite(Vector2 other)booleanVector2. isCollinearOpposite(Vector2 other, float epsilon)booleanVector2. isOnLine(Vector2 other)booleanVector2. isOnLine(Vector2 other, float epsilon)booleanVector2. isPerpendicular(Vector2 vector)booleanVector2. isPerpendicular(Vector2 vector, float epsilon)static booleanIntersector. isPointInPolygon(Array<Vector2> polygon, Vector2 point)Checks whether the given point is in the polygon.static booleanIntersector. isPointInTriangle(Vector2 p, Vector2 a, Vector2 b, Vector2 c)Returns true if the given point is inside the triangle.Vector2Vector2. lerp(Vector2 target, float alpha)RectangleRectangle. merge(Vector2 vec)Merges this rectangle with a point.RectangleRectangle. merge(Vector2[] vecs)Merges this rectangle with a list of points.Vector2Vector2. mulAdd(Vector2 vec, float scalar)Vector2Vector2. mulAdd(Vector2 vec, Vector2 mulVec)static Vector2Intersector. nearestSegmentPoint(float startX, float startY, float endX, float endY, float pointX, float pointY, Vector2 nearest)Returns a point on the segment nearest to the specified point.static Vector2Intersector. nearestSegmentPoint(Vector2 start, Vector2 end, Vector2 point, Vector2 nearest)Returns a point on the segment nearest to the specified point.static intIntersector. pointLineSide(Vector2 linePoint1, Vector2 linePoint2, Vector2 point)Determines on which side of the given line the point is.static Vector2GeometryUtils. polygonCentroid(float[] polygon, int offset, int count, Vector2 centroid)Returns the centroid for the specified non-self-intersecting polygon.Affine2Affine2. preScale(Vector2 scale)Premultiplies this matrix with a scale matrix.Affine2Affine2. preShear(Vector2 shear)Premultiplies this matrix by a shear matrix.Affine2Affine2. preTranslate(Vector2 trn)Premultiplies this matrix by a translation matrix.static Vector2GeometryUtils. quadrilateralCentroid(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, Vector2 centroid)Vector2Vector2. rotateAround(Vector2 reference, float degrees)Deprecated.userotateAroundDeg(Vector2, float)instead.Vector2Vector2. rotateAroundDeg(Vector2 reference, float degrees)Rotates the Vector2 by the given angle around reference vector, counter-clockwise assuming the y-axis points up.Vector2Vector2. rotateAroundRad(Vector2 reference, float radians)Rotates the Vector2 by the given angle around reference vector, counter-clockwise assuming the y-axis points up.Affine2Affine2. scale(Vector2 scale)Postmultiplies this matrix with a scale matrix.Matrix3Matrix3. scale(Vector2 scale)Postmultiplies this matrix with a scale matrix.Matrix3Matrix3. scl(Vector2 scale)Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.Vector2Vector2. scl(Vector2 v)voidCircle. set(Vector2 position, float radius)Sets a new location and radius for this circle.voidCircle. set(Vector2 center, Vector2 edge)Sets thisCircle's values in terms of its center and a point on its edge.voidEllipse. set(Vector2 position, Vector2 size)Vector2Vector2. set(Vector2 v)Vector3Vector3. set(Vector2 vector, float z)Sets the components of the given vector and z-componentVector4Vector4. set(Vector2 vector, float z, float w)Sets the components to the given Vector2, z-component and w-componentRectangleRectangle. setCenter(Vector2 position)Moves this rectangle so that its center point is located at a given positionvoidCircle. setPosition(Vector2 position)Sets the x and y-coordinates of circle center from vectorEllipseEllipse. setPosition(Vector2 position)Sets the x and y-coordinates of ellipse center from aVector2.RectangleRectangle. setPosition(Vector2 position)Sets the x and y-coordinates of the bottom left corner from vectorAffine2Affine2. setToScaling(Vector2 scale)Sets this matrix to a scaling matrix.Matrix3Matrix3. setToScaling(Vector2 scale)Sets this matrix to a scaling matrix.Affine2Affine2. setToShearing(Vector2 shear)Sets this matrix to a shearing matrix.Affine2Affine2. setToTranslation(Vector2 trn)Sets this matrix to a translation matrix.Matrix3Matrix3. setToTranslation(Vector2 translation)Sets this matrix to a translation matrix.Affine2Affine2. setToTrnRotRadScl(Vector2 trn, float radians, Vector2 scale)Sets this matrix to a concatenation of translation, rotation and scale.Affine2Affine2. setToTrnRotScl(Vector2 trn, float degrees, Vector2 scale)Sets this matrix to a concatenation of translation, rotation and scale.Affine2Affine2. setToTrnScl(Vector2 trn, Vector2 scale)Sets this matrix to a concatenation of translation and scale.Affine2Affine2. shear(Vector2 shear)Postmultiplies this matrix by a shear matrix.Vector2Vector2. sub(Vector2 v)static Vector2GeometryUtils. toBarycoord(Vector2 p, Vector2 a, Vector2 b, Vector2 c, Vector2 barycentricOut)Computes the barycentric coordinates v,w for the specified point in the triangle.Affine2Affine2. translate(Vector2 trn)Postmultiplies this matrix by a translation matrix.Matrix3Matrix3. translate(Vector2 translation)Postmultiplies this matrix by a translation matrix.static Vector2GeometryUtils. triangleCentroid(float x1, float y1, float x2, float y2, float x3, float y3, Vector2 centroid)static Vector2GeometryUtils. triangleCircumcenter(float x1, float y1, float x2, float y2, float x3, float y3, Vector2 circumcenter)Returns the circumcenter of the triangle.Matrix3Matrix3. trn(Vector2 vector)Adds a translational component to the matrix in the 3rd column.Method parameters in com.badlogic.gdx.math with type arguments of type Vector2 Modifier and Type Method Description static booleanIntersector. isPointInPolygon(Array<Vector2> polygon, Vector2 point)Checks whether the given point is in the polygon.Constructors in com.badlogic.gdx.math with parameters of type Vector2 Constructor Description Circle(Vector2 position, float radius)Constructs a new circle using a givenVector2that contains the desired X and Y coordinates, and a given radius.Circle(Vector2 center, Vector2 edge)Creates a newCirclein terms of its center and a point on its edge.Ellipse(Vector2 position, float width, float height)Constructs a new ellipseEllipse(Vector2 position, Vector2 size)Constructs a new ellipseVector2(Vector2 v)Constructs a vector from the given vectorVector3(Vector2 vector, float z)Creates a vector from the given vector and z-componentVector4(Vector2 vector, float z, float w)Creates a vector from the given Vector2 and z- and w-components -
Uses of Vector2 in com.badlogic.gdx.scenes.scene2d
Methods in com.badlogic.gdx.scenes.scene2d that return Vector2 Modifier and Type Method Description Vector2Actor. localToActorCoordinates(Actor actor, Vector2 localCoords)Converts coordinates for this actor to those of another actor, which can be anywhere in the stage.Vector2Actor. localToAscendantCoordinates(Actor ascendant, Vector2 localCoords)Converts coordinates for this actor to those of an ascendant.Vector2Group. localToDescendantCoordinates(Actor descendant, Vector2 localCoords)Converts coordinates for this group to those of a descendant actor.Vector2Actor. localToParentCoordinates(Vector2 localCoords)Transforms the specified point in the actor's coordinates to be in the parent's coordinates.Vector2Actor. localToScreenCoordinates(Vector2 localCoords)Transforms the specified point in the actor's coordinates to be in screen coordinates.Vector2Actor. localToStageCoordinates(Vector2 localCoords)Transforms the specified point in the actor's coordinates to be in the stage's coordinates.Vector2Actor. parentToLocalCoordinates(Vector2 parentCoords)Converts the coordinates given in the parent's coordinate system to this actor's coordinate system.Vector2Actor. screenToLocalCoordinates(Vector2 screenCoords)Transforms the specified point in screen coordinates to the actor's local coordinate system.Vector2Stage. screenToStageCoordinates(Vector2 screenCoords)Transforms the screen coordinates to stage coordinates.Vector2Actor. stageToLocalCoordinates(Vector2 stageCoords)Transforms the specified point in the stage's coordinates to the actor's local coordinate system.Vector2Stage. stageToScreenCoordinates(Vector2 stageCoords)Transforms the stage coordinates to screen coordinates.Vector2InputEvent. toCoordinates(Actor actor, Vector2 actorCoords)Sets actorCoords to this event's coordinates relative to the specified actor.Vector2Stage. toScreenCoordinates(Vector2 coords, Matrix4 transformMatrix)Transforms the coordinates to screen coordinates.Methods in com.badlogic.gdx.scenes.scene2d with parameters of type Vector2 Modifier and Type Method Description Vector2Actor. localToActorCoordinates(Actor actor, Vector2 localCoords)Converts coordinates for this actor to those of another actor, which can be anywhere in the stage.Vector2Actor. localToAscendantCoordinates(Actor ascendant, Vector2 localCoords)Converts coordinates for this actor to those of an ascendant.Vector2Group. localToDescendantCoordinates(Actor descendant, Vector2 localCoords)Converts coordinates for this group to those of a descendant actor.Vector2Actor. localToParentCoordinates(Vector2 localCoords)Transforms the specified point in the actor's coordinates to be in the parent's coordinates.Vector2Actor. localToScreenCoordinates(Vector2 localCoords)Transforms the specified point in the actor's coordinates to be in screen coordinates.Vector2Actor. localToStageCoordinates(Vector2 localCoords)Transforms the specified point in the actor's coordinates to be in the stage's coordinates.Vector2Actor. parentToLocalCoordinates(Vector2 parentCoords)Converts the coordinates given in the parent's coordinate system to this actor's coordinate system.Vector2Actor. screenToLocalCoordinates(Vector2 screenCoords)Transforms the specified point in screen coordinates to the actor's local coordinate system.Vector2Stage. screenToStageCoordinates(Vector2 screenCoords)Transforms the screen coordinates to stage coordinates.Vector2Actor. stageToLocalCoordinates(Vector2 stageCoords)Transforms the specified point in the stage's coordinates to the actor's local coordinate system.Vector2Stage. stageToScreenCoordinates(Vector2 stageCoords)Transforms the stage coordinates to screen coordinates.Vector2InputEvent. toCoordinates(Actor actor, Vector2 actorCoords)Sets actorCoords to this event's coordinates relative to the specified actor.Vector2Stage. toScreenCoordinates(Vector2 coords, Matrix4 transformMatrix)Transforms the coordinates to screen coordinates. -
Uses of Vector2 in com.badlogic.gdx.scenes.scene2d.utils
Methods in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Vector2 Modifier and Type Method Description voidActorGestureListener. pinch(InputEvent event, Vector2 initialPointer1, Vector2 initialPointer2, Vector2 pointer1, Vector2 pointer2) -
Uses of Vector2 in com.badlogic.gdx.utils
Fields in com.badlogic.gdx.utils declared as Vector2 Modifier and Type Field Description protected static Vector2Scaling. tempMethods in com.badlogic.gdx.utils that return Vector2 Modifier and Type Method Description abstract Vector2Scaling. apply(float sourceWidth, float sourceHeight, float targetWidth, float targetHeight)Returns the size of the source scaled to the target. -
Uses of Vector2 in com.badlogic.gdx.utils.viewport
Methods in com.badlogic.gdx.utils.viewport that return Vector2 Modifier and Type Method Description Vector2Viewport. project(Vector2 worldCoords)Transforms the specified world coordinate to screen coordinates.Vector2Viewport. toScreenCoordinates(Vector2 worldCoords, Matrix4 transformMatrix)Transforms a point to real screen coordinates (as opposed to OpenGL ES window coordinates), where the origin is in the top left and the the y-axis is pointing downwards.Vector2Viewport. unproject(Vector2 screenCoords)Transforms the specified screen coordinate to world coordinates.Methods in com.badlogic.gdx.utils.viewport with parameters of type Vector2 Modifier and Type Method Description Vector2Viewport. project(Vector2 worldCoords)Transforms the specified world coordinate to screen coordinates.Vector2Viewport. toScreenCoordinates(Vector2 worldCoords, Matrix4 transformMatrix)Transforms a point to real screen coordinates (as opposed to OpenGL ES window coordinates), where the origin is in the top left and the the y-axis is pointing downwards.Vector2Viewport. unproject(Vector2 screenCoords)Transforms the specified screen coordinate to world coordinates.
-