Uses of Class
com.raylib.Vector2
Packages that use Vector2
-
Uses of Vector2 in com.raylib
Methods in com.raylib that return Vector2Modifier and TypeMethodDescriptionstatic Vector2
Vector2.allocateArray
(long elementCount) Allocate an array of Vector2static Vector2
Vector2.allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of Vector2Vector2.getArrayElement
(int index) static Vector2
Raylib.getGestureDragVector()
Get gesture drag vectorstatic Vector2
Raylib.getGestureDragVector
(Arena arena) Get gesture drag vectorstatic Vector2
Raylib.getGesturePinchVector()
Get gesture pinch deltastatic Vector2
Raylib.getGesturePinchVector
(Arena arena) Get gesture pinch deltastatic Vector2
Raylib.getMonitorPosition
(int monitor) Get specified monitor positionstatic Vector2
Raylib.getMonitorPosition
(Arena arena, int monitor) Get specified monitor positionstatic Vector2
Raylib.getMouseDelta()
Get mouse delta between framesstatic Vector2
Raylib.getMouseDelta
(Arena arena) Get mouse delta between framesstatic Vector2
Raylib.getMousePosition()
Get mouse position XYstatic Vector2
Raylib.getMousePosition
(Arena arena) Get mouse position XYstatic Vector2
Raylib.getMouseWheelMoveV()
Get mouse wheel movement for both X and Ystatic Vector2
Raylib.getMouseWheelMoveV
(Arena arena) Get mouse wheel movement for both X and YCamera2D.getOffset()
Camera offset (displacement from target)static Vector2
Raylib.getScreenToWorld2D
(Vector2 position, Camera2D camera) Get the world space position for a 2d camera screen space positionstatic Vector2
Raylib.getScreenToWorld2D
(Arena arena, Vector2 position, Camera2D camera) Get the world space position for a 2d camera screen space positionstatic Vector2
Raylib.getSplinePointBasis
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: B-Splinestatic Vector2
Get (evaluate) spline point: B-Splinestatic Vector2
Raylib.getSplinePointBezierCubic
(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) Get (evaluate) spline point: Cubic Bezierstatic Vector2
Raylib.getSplinePointBezierCubic
(Arena arena, Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) Get (evaluate) spline point: Cubic Bezierstatic Vector2
Raylib.getSplinePointBezierQuad
(Vector2 p1, Vector2 c2, Vector2 p3, float t) Get (evaluate) spline point: Quadratic Bezierstatic Vector2
Raylib.getSplinePointBezierQuad
(Arena arena, Vector2 p1, Vector2 c2, Vector2 p3, float t) Get (evaluate) spline point: Quadratic Bezierstatic Vector2
Raylib.getSplinePointCatmullRom
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: Catmull-Romstatic Vector2
Raylib.getSplinePointCatmullRom
(Arena arena, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: Catmull-Romstatic Vector2
Raylib.getSplinePointLinear
(Vector2 startPos, Vector2 endPos, float t) Get (evaluate) spline point: Linearstatic Vector2
Raylib.getSplinePointLinear
(Arena arena, Vector2 startPos, Vector2 endPos, float t) Get (evaluate) spline point: LinearCamera2D.getTarget()
Camera target (rotation and zoom origin)static Vector2
Raylib.getTouchPosition
(int index) Get touch position XY for a touch point index (relative to screen size)static Vector2
Raylib.getTouchPosition
(Arena arena, int index) Get touch position XY for a touch point index (relative to screen size)static Vector2
Raylib.getWindowPosition()
Get window position XY on monitorstatic Vector2
Raylib.getWindowPosition
(Arena arena) Get window position XY on monitorstatic Vector2
Raylib.getWindowScaleDPI()
Get window scale DPI factorstatic Vector2
Raylib.getWindowScaleDPI
(Arena arena) Get window scale DPI factorstatic Vector2
Raylib.getWorldToScreen
(Vector3 position, Camera3D camera) Get the screen space position for a 3d world space positionstatic Vector2
Raylib.getWorldToScreen
(Arena arena, Vector3 position, Camera3D camera) Get the screen space position for a 3d world space positionstatic Vector2
Raylib.getWorldToScreen2D
(Vector2 position, Camera2D camera) Get the screen space position for a 2d camera world space positionstatic Vector2
Raylib.getWorldToScreen2D
(Arena arena, Vector2 position, Camera2D camera) Get the screen space position for a 2d camera world space positionstatic Vector2
Raylib.getWorldToScreenEx
(Vector3 position, Camera3D camera, int width, int height) Get size position for a 3d world space positionstatic Vector2
Raylib.getWorldToScreenEx
(Arena arena, Vector3 position, Camera3D camera, int width, int height) Get size position for a 3d world space positionstatic Vector2
Raylib.measureTextEx
(Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic Vector2
Raylib.measureTextEx
(Arena arena, Font font, String text, float fontSize, float spacing) Measure string size for FontVector2.setX
(float value) Vector x componentVector2.setY
(float value) Vector y componentMethods in com.raylib with parameters of type Vector2Modifier and TypeMethodDescriptionstatic boolean
Raylib.checkCollisionCircleRec
(Vector2 center, float radius, Rectangle rec) Check collision between circle and rectanglestatic boolean
Raylib.checkCollisionCircles
(Vector2 center1, float radius1, Vector2 center2, float radius2) Check collision between two circlesstatic boolean
Raylib.checkCollisionLines
(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 collisionPoint) Check the collision between two lines defined by two points each, returns collision point by referencestatic boolean
Raylib.checkCollisionPointCircle
(Vector2 point, Vector2 center, float radius) Check if point is inside circlestatic boolean
Raylib.checkCollisionPointLine
(Vector2 point, Vector2 p1, Vector2 p2, int threshold) Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]static boolean
Raylib.checkCollisionPointPoly
(Vector2 point, Vector2 points, int pointCount) Check if point is within a polygon described by array of verticesstatic boolean
Raylib.checkCollisionPointRec
(Vector2 point, Rectangle rec) Check if point is inside rectanglestatic boolean
Raylib.checkCollisionPointTriangle
(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) Check if point is inside a trianglestatic void
Raylib.drawBillboardPro
(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) Draw a billboard texture defined by source and rotationstatic void
Raylib.drawBillboardRec
(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint) Draw a billboard texture defined by sourcestatic void
Raylib.drawCircleLinesV
(Vector2 center, float radius, Color color) Draw circle outline (Vector version)static void
Raylib.drawCircleSector
(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw a piece of a circlestatic void
Raylib.drawCircleSectorLines
(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw circle sector outlinestatic void
Raylib.drawCircleV
(Vector2 center, float radius, Color color) Draw a color-filled circle (Vector version)static void
Raylib.drawLineBezier
(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw line segment cubic-bezier in-out interpolationstatic void
Raylib.drawLineEx
(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw a line (using triangles/quads)static void
Raylib.drawLineStrip
(Vector2 points, int pointCount, Color color) Draw lines sequence (using gl lines)static void
Draw a line (using gl lines)static void
Raylib.drawPixelV
(Vector2 position, Color color) Draw a pixel (Vector version)static void
Draw a plane XZstatic void
Draw a regular polygon (Vector version)static void
Raylib.drawPolyLines
(Vector2 center, int sides, float radius, float rotation, Color color) Draw a polygon outline of n sidesstatic void
Raylib.drawPolyLinesEx
(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) Draw a polygon outline of n sides with extended parametersstatic void
Raylib.drawRectanglePro
(Rectangle rec, Vector2 origin, float rotation, Color color) Draw a color-filled rectangle with pro parametersstatic void
Raylib.drawRectangleV
(Vector2 position, Vector2 size, Color color) Draw a color-filled rectangle (Vector version)static void
Raylib.drawRing
(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ringstatic void
Raylib.drawRingLines
(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ring outlinestatic void
Raylib.drawSplineBasis
(Vector2 points, int pointCount, float thick, Color color) Draw spline: B-Spline, minimum 4 pointsstatic void
Raylib.drawSplineBezierCubic
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]static void
Raylib.drawSplineBezierQuadratic
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]static void
Raylib.drawSplineCatmullRom
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Catmull-Rom, minimum 4 pointsstatic void
Raylib.drawSplineLinear
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Linear, minimum 2 pointsstatic void
Raylib.drawSplineSegmentBasis
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) Draw spline segment: B-Spline, 4 pointsstatic void
Raylib.drawSplineSegmentBezierCubic
(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) Draw spline segment: Cubic Bezier, 2 points, 2 control pointsstatic void
Raylib.drawSplineSegmentBezierQuadratic
(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) Draw spline segment: Quadratic Bezier, 2 points, 1 control pointstatic void
Raylib.drawSplineSegmentCatmullRom
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) Draw spline segment: Catmull-Rom, 4 pointsstatic void
Raylib.drawSplineSegmentLinear
(Vector2 p1, Vector2 p2, float thick, Color color) Draw spline segment: Linear, 2 pointsstatic void
Raylib.drawTextCodepoint
(Font font, int codepoint, Vector2 position, float fontSize, Color tint) Draw one character (codepoint)static void
Raylib.drawTextCodepoints
(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) Draw multiple character (codepoint)static void
Raylib.drawTextEx
(Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text using font and additional parametersstatic void
Raylib.drawTextPro
(Font font, String text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) Draw text using Font and pro parameters (rotation)static void
Raylib.drawTextureEx
(Texture texture, Vector2 position, float rotation, float scale, Color tint) Draw a Texture2D with extended parametersstatic void
Raylib.drawTextureNPatch
(Texture texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) Draws a texture (or part of it) that stretches or shrinks nicelystatic void
Raylib.drawTexturePro
(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) Draw a part of a texture defined by a rectangle with 'pro' parametersstatic void
Raylib.drawTextureRec
(Texture texture, Rectangle source, Vector2 position, Color tint) Draw a part of a texture defined by a rectanglestatic void
Raylib.drawTextureV
(Texture texture, Vector2 position, Color tint) Draw a Texture2D with position defined as Vector2static void
Raylib.drawTriangle
(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static void
Raylib.drawTriangleFan
(Vector2 points, int pointCount, Color color) Draw a triangle fan defined by points (first vertex is the center)static void
Raylib.drawTriangleLines
(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw triangle outline (vertex in counter-clockwise order!)static void
Raylib.drawTriangleStrip
(Vector2 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic Ray
Raylib.getMouseRay
(Vector2 mousePosition, Camera3D camera) Get a ray trace from mouse positionstatic Ray
Raylib.getMouseRay
(Arena arena, Vector2 mousePosition, Camera3D camera) Get a ray trace from mouse positionstatic Vector2
Raylib.getScreenToWorld2D
(Vector2 position, Camera2D camera) Get the world space position for a 2d camera screen space positionstatic Vector2
Raylib.getScreenToWorld2D
(Arena arena, Vector2 position, Camera2D camera) Get the world space position for a 2d camera screen space positionstatic Vector2
Raylib.getSplinePointBasis
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: B-Splinestatic Vector2
Get (evaluate) spline point: B-Splinestatic Vector2
Raylib.getSplinePointBezierCubic
(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) Get (evaluate) spline point: Cubic Bezierstatic Vector2
Raylib.getSplinePointBezierCubic
(Arena arena, Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) Get (evaluate) spline point: Cubic Bezierstatic Vector2
Raylib.getSplinePointBezierQuad
(Vector2 p1, Vector2 c2, Vector2 p3, float t) Get (evaluate) spline point: Quadratic Bezierstatic Vector2
Raylib.getSplinePointBezierQuad
(Arena arena, Vector2 p1, Vector2 c2, Vector2 p3, float t) Get (evaluate) spline point: Quadratic Bezierstatic Vector2
Raylib.getSplinePointCatmullRom
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: Catmull-Romstatic Vector2
Raylib.getSplinePointCatmullRom
(Arena arena, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: Catmull-Romstatic Vector2
Raylib.getSplinePointLinear
(Vector2 startPos, Vector2 endPos, float t) Get (evaluate) spline point: Linearstatic Vector2
Raylib.getSplinePointLinear
(Arena arena, Vector2 startPos, Vector2 endPos, float t) Get (evaluate) spline point: Linearstatic Vector2
Raylib.getWorldToScreen2D
(Vector2 position, Camera2D camera) Get the screen space position for a 2d camera world space positionstatic Vector2
Raylib.getWorldToScreen2D
(Arena arena, Vector2 position, Camera2D camera) Get the screen space position for a 2d camera world space positionstatic void
Raylib.imageDrawCircleLinesV
(Image dst, Vector2 center, int radius, Color color) Draw circle outline within an image (Vector version)static void
Raylib.imageDrawCircleV
(Image dst, Vector2 center, int radius, Color color) Draw a filled circle within an image (Vector version)static void
Raylib.imageDrawLineV
(Image dst, Vector2 start, Vector2 end, Color color) Draw line within an image (Vector version)static void
Raylib.imageDrawPixelV
(Image dst, Vector2 position, Color color) Draw pixel within an image (Vector version)static void
Raylib.imageDrawRectangleV
(Image dst, Vector2 position, Vector2 size, Color color) Draw rectangle within an image (Vector version)static void
Raylib.imageDrawTextEx
(Image dst, Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text (custom sprite font) within an image (destination)Camera offset (displacement from target)Camera target (rotation and zoom origin)Constructors in com.raylib with parameters of type Vector2ModifierConstructorDescriptionConstruct with auto memory allocator and fields initialized as specifiedCamera2D
(SegmentAllocator arena, Vector2 offset, Vector2 target, float rotation, float zoom) Construct with your own memory allocator and fields initialized as specified