Uses of Class
org.jbox2d.common.Vec2
-
-
Uses of Vec2 in org.jbox2d.callbacks
Methods in org.jbox2d.callbacks that return Vec2 Modifier and Type Method Description Vec2
DebugDraw. getScreenToWorld(float screenX, float screenY)
takes the screen coordinates and returns the world coordinates.Vec2
DebugDraw. getScreenToWorld(Vec2 argScreen)
takes the screen coordinates (argScreen) and returns the world coordinatesVec2
DebugDraw. getWorldToScreen(float worldX, float worldY)
Takes the world coordinates and returns the screen coordinates.Vec2
DebugDraw. getWorldToScreen(Vec2 argWorld)
takes the world coordinate (argWorld) and returns the screen coordinates.Methods in org.jbox2d.callbacks with parameters of type Vec2 Modifier and Type Method Description abstract void
DebugDraw. drawCircle(Vec2 center, float radius, Color3f color)
Draw a circle.abstract void
DebugDraw. drawPoint(Vec2 argPoint, float argRadiusOnScreen, Color3f argColor)
void
DebugDraw. drawPolygon(Vec2[] vertices, int vertexCount, Color3f color)
Draw a closed polygon provided in CCW order.abstract void
DebugDraw. drawSegment(Vec2 p1, Vec2 p2, Color3f color)
Draw a line segment.abstract void
DebugDraw. drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color)
Draw a solid circle.abstract void
DebugDraw. drawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color)
Draw a solid closed polygon provided in CCW order.void
DebugDraw. drawString(Vec2 pos, java.lang.String s, Color3f color)
Vec2
DebugDraw. getScreenToWorld(Vec2 argScreen)
takes the screen coordinates (argScreen) and returns the world coordinatesvoid
DebugDraw. getScreenToWorldToOut(float screenX, float screenY, Vec2 argWorld)
takes the screen coordinates and puts the corresponding world coordinates in argWorld.void
DebugDraw. getScreenToWorldToOut(Vec2 argScreen, Vec2 argWorld)
Vec2
DebugDraw. getWorldToScreen(Vec2 argWorld)
takes the world coordinate (argWorld) and returns the screen coordinates.void
DebugDraw. getWorldToScreenToOut(float worldX, float worldY, Vec2 argScreen)
Takes the world coordinates and puts the corresponding screen coordinates in argScreen.void
DebugDraw. getWorldToScreenToOut(Vec2 argWorld, Vec2 argScreen)
float
RayCastCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)
Called for each fixture found in the query. -
Uses of Vec2 in org.jbox2d.collision
Fields in org.jbox2d.collision declared as Vec2 Modifier and Type Field Description private Vec2
SeparationFunction. axisA
private Vec2
SeparationFunction. axisB
private Vec2
Distance.Simplex. case2
private Vec2
Distance.Simplex. case22
private Vec2
Distance.Simplex. case3
private Vec2
Distance.Simplex. case33
private Vec2
Distance. closestPoint
private static Vec2
Collision. d
private Vec2
Distance. d
private Vec2
Collision. e
private Vec2
Collision. e1
private Vec2
Distance.Simplex. e12
private Vec2
Distance.Simplex. e13
private Vec2
Distance.Simplex. e23
private Vec2
Collision.EPCollider. edge0
private Vec2
Collision.EPCollider. edge1
private Vec2
Collision.EPCollider. edge2
private Vec2
Collision. localNormal
Vec2
Manifold. localNormal
not use for Type::e_pointsVec2
Manifold. localPoint
usage depends on manifold typeVec2
ManifoldPoint. localPoint
usage depends on manifold typeprivate Vec2
SeparationFunction. localPointA
private Vec2
SeparationFunction. localPointA1
private Vec2
SeparationFunction. localPointA2
private Vec2
SeparationFunction. localPointB
private Vec2
SeparationFunction. localPointB1
private Vec2
SeparationFunction. localPointB2
private Vec2
Collision. localTangent
Vec2
AABB. lowerBound
Bottom left vertex of bounding box.Vec2
SeparationFunction. m_axis
Vec2[]
Distance.DistanceProxy. m_buffer
(package private) Vec2
Collision.EPCollider. m_centroidB
Vec2
SeparationFunction. m_localPoint
(package private) Vec2
Collision.EPCollider. m_lowerLimit
(package private) Vec2
Collision.EPCollider. m_normal
(package private) Vec2
Collision.EPCollider. m_normal0
(package private) Vec2
Collision.EPCollider. m_normal1
(package private) Vec2
Collision.EPCollider. m_normal2
(package private) Vec2
Collision.EPCollider. m_upperLimit
(package private) Vec2
Collision.EPCollider. m_v0
(package private) Vec2
Collision.EPCollider. m_v1
(package private) Vec2
Collision.EPCollider. m_v2
(package private) Vec2
Collision.EPCollider. m_v3
Vec2[]
Distance.DistanceProxy. m_vertices
private Vec2
Collision.EPCollider. n
private Vec2
Collision. n
(package private) Vec2
Collision.ReferenceFace. normal
private Vec2
Distance. normal
Vec2
RayCastOutput. normal
private Vec2
SeparationFunction. normal
Vec2
WorldManifold. normal
World vector pointing from A to B(package private) Vec2[]
Collision.TempPolygon. normals
private Vec2
Collision. P
Vec2
RayCastInput. p1
Vec2
RayCastInput. p2
private Vec2
Collision.EPCollider. perp
private Vec2
Collision. planePoint
Vec2
DistanceOutput. pointA
Closest point on shapeAprivate Vec2
SeparationFunction. pointA
Vec2
DistanceOutput. pointB
Closest point on shapeBprivate Vec2
SeparationFunction. pointB
Vec2[]
WorldManifold. points
World contact point (point of intersection)private Vec2
WorldManifold. pool3
private Vec2
WorldManifold. pool4
private Vec2
Collision. Q
(package private) Vec2
Collision.ReferenceFace. sideNormal1
(package private) Vec2
Collision.ReferenceFace. sideNormal2
private Vec2
Collision. tangent
private Vec2
Collision.EPCollider. temp
private Vec2
Collision. temp
private Vec2
Distance. temp
private Vec2
SeparationFunction. temp
Vec2
AABB. upperBound
Top right vertex of bounding box.Vec2
Collision.ClipVertex. v
(package private) Vec2
Collision.ReferenceFace. v1
private Vec2
Collision. v11
private Vec2
Collision. v12
(package private) Vec2
Collision.ReferenceFace. v2
(package private) Vec2[]
Collision.TempPolygon. vertices
Vec2
Distance.SimplexVertex. w
private Vec2
Distance.Simplex. w1
private Vec2
Distance.Simplex. w2
private Vec2
Distance.Simplex. w3
Vec2
Distance.SimplexVertex. wA
Vec2
Distance.SimplexVertex. wB
Methods in org.jbox2d.collision that return Vec2 Modifier and Type Method Description Vec2
AABB. getCenter()
Get the center of the AABBVec2
AABB. getExtents()
Get the extents of the AABB (half-widths).Vec2
Distance.DistanceProxy. getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction.Vec2
Distance.DistanceProxy. getVertex(int index)
Get a vertex by index.Methods in org.jbox2d.collision with parameters of type Vec2 Modifier and Type Method Description static int
Collision. clipSegmentToLine(Collision.ClipVertex[] vOut, Collision.ClipVertex[] vIn, Vec2 normal, float offset, int vertexIndexA)
Clipping for contact manifolds.void
AABB. getCenterToOut(Vec2 out)
void
Distance.Simplex. getClosestPoint(Vec2 out)
this returns pooled objects.void
AABB. getExtentsToOut(Vec2 out)
void
Distance.Simplex. getSearchDirection(Vec2 out)
int
Distance.DistanceProxy. getSupport(Vec2 d)
Get the supporting vertex index in the given direction.Vec2
Distance.DistanceProxy. getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction.void
AABB. getVertices(Vec2[] argRay)
void
Distance.Simplex. getWitnessPoints(Vec2 pA, Vec2 pB)
Constructors in org.jbox2d.collision with parameters of type Vec2 Constructor Description AABB(Vec2 lowerVertex, Vec2 upperVertex)
Creates an AABB object using the given bounding vertices. -
Uses of Vec2 in org.jbox2d.collision.broadphase
Fields in org.jbox2d.collision.broadphase declared as Vec2 Modifier and Type Field Description private Vec2[]
DynamicTree. drawVecs
private Vec2
DynamicTree. r
private Vec2
DynamicTree. textVec
Methods in org.jbox2d.collision.broadphase with parameters of type Vec2 Modifier and Type Method Description void
BroadPhase. moveProxy(int proxyId, AABB aabb, Vec2 displacement)
Call MoveProxy as many times as you like, then when you are done call UpdatePairs to finalized the proxy pairs (for your time step).boolean
BroadPhaseStrategy. moveProxy(int proxyId, AABB aabb, Vec2 displacement)
Move a proxy with a swepted AABB.boolean
DynamicTree. moveProxy(int proxyId, AABB aabb, Vec2 displacement)
-
Uses of Vec2 in org.jbox2d.collision.shapes
Fields in org.jbox2d.collision.shapes declared as Vec2 Modifier and Type Field Description Vec2
MassData. center
The position of the shape's centroid relative to the shape's origin.Vec2
PolygonShape. m_centroid
Local position of the shape centroid in parent body frame.Vec2
ChainShape. m_nextVertex
Vec2[]
PolygonShape. m_normals
The normals of the shape.Vec2
CircleShape. m_p
Vec2
ChainShape. m_prevVertex
Vec2
EdgeShape. m_vertex0
optional adjacent vertex 1.Vec2
EdgeShape. m_vertex1
edge vertex 1Vec2
EdgeShape. m_vertex2
edge vertex 2Vec2
EdgeShape. m_vertex3
optional adjacent vertex 2.Vec2[]
ChainShape. m_vertices
Vec2[]
PolygonShape. m_vertices
The vertices of the shape.private Vec2
EdgeShape. normal
private Vec2
PolygonShape. pool1
private Vec2
PolygonShape. pool2
private Vec2
PolygonShape. pool3
private Vec2
PolygonShape. pool4
Methods in org.jbox2d.collision.shapes that return Vec2 Modifier and Type Method Description Vec2
PolygonShape. centroid(Transform xf)
Get the centroid and apply the supplied transform.Vec2
PolygonShape. centroidToOut(Transform xf, Vec2 out)
Get the centroid and apply the supplied transform.Vec2[]
PolygonShape. getNormals()
Get the edge normal vectors.Vec2
CircleShape. getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction.Vec2
CircleShape. getVertex(int index)
Get a vertex by index.Vec2
PolygonShape. getVertex(int index)
Get a vertex by index.Vec2[]
PolygonShape. getVertices()
Get the vertices in local coordinates.Methods in org.jbox2d.collision.shapes with parameters of type Vec2 Modifier and Type Method Description Vec2
PolygonShape. centroidToOut(Transform xf, Vec2 out)
Get the centroid and apply the supplied transform.void
PolygonShape. computeCentroidToOut(Vec2[] vs, int count, Vec2 out)
void
ChainShape. createChain(Vec2[] vertices, int count)
Create a chain with isolated end vertices.void
ChainShape. createLoop(Vec2[] vertices, int count)
Create a loop.int
CircleShape. getSupport(Vec2 d)
Get the supporting vertex index in the given direction.Vec2
CircleShape. getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction.void
EdgeShape. set(Vec2 v1, Vec2 v2)
void
PolygonShape. set(Vec2[] vertices, int count)
Create a convex hull from the given array of points.void
PolygonShape. set(Vec2[] verts, int num, Vec2Array vecPool, IntArray intPool)
Create a convex hull from the given array of points.void
PolygonShape. setAsBox(float hx, float hy, Vec2 center, float angle)
Build vertices to represent an oriented box.void
ChainShape. setNextVertex(Vec2 nextVertex)
Establish connectivity to a vertex that follows the last vertex.void
ChainShape. setPrevVertex(Vec2 prevVertex)
Establish connectivity to a vertex that precedes the first vertex.boolean
ChainShape. testPoint(Transform xf, Vec2 p)
boolean
CircleShape. testPoint(Transform transform, Vec2 p)
boolean
EdgeShape. testPoint(Transform xf, Vec2 p)
boolean
PolygonShape. testPoint(Transform xf, Vec2 p)
abstract boolean
Shape. testPoint(Transform xf, Vec2 p)
Test a point for containment in this shape. -
Uses of Vec2 in org.jbox2d.common
Fields in org.jbox2d.common declared as Vec2 Modifier and Type Field Description Vec2
Sweep. c
Center world positionsVec2
Sweep. c0
Center world positionsVec2
OBBViewportTransform.OBB. center
Vec2
Mat22. ex
Vec2
OBBViewportTransform.OBB. extents
Vec2
Mat22. ey
Vec2
Sweep. localCenter
Local center of mass positionVec2
RaycastResult. normal
Vec2
Transform. p
The translation caused by the transformprivate static Vec2
Transform. pool
Methods in org.jbox2d.common that return Vec2 Modifier and Type Method Description Vec2
Vec2. abs()
Return a new vector that has positive components.static Vec2
Vec2. abs(Vec2 a)
Vec2
Vec2. add(Vec2 v)
Return the sum of this vector and another; does not alter either one.Vec2
Vec2. addLocal(float x, float y)
Adds values to this vector and returns result - alters this vector.Vec2
Vec2. addLocal(Vec2 v)
Add another vector to this one and returns result - alters this vector.static Vec2
MathUtils. clamp(Vec2 a, Vec2 low, Vec2 high)
Vec2
Vec2. clone()
Return a copy of this vector.static Vec2
Vec2. cross(float s, Vec2 a)
static Vec2
Vec2. cross(Vec2 a, float s)
Vec2
IViewportTransform. getCenter()
center of the viewport.Vec2
OBBViewportTransform. getCenter()
Vec2
IViewportTransform. getExtents()
This is the half-width and half-height.Vec2
OBBViewportTransform. getExtents()
static Vec2
Vec2. max(Vec2 a, Vec2 b)
static Vec2
Vec2. min(Vec2 a, Vec2 b)
static Vec2
Mat22. mul(Mat22 R, Vec2 v)
Vec2
Mat22. mul(Vec2 v)
Multiply a vector by this matrix.static Vec2
Transform. mul(Transform T, Vec2 v)
Vec2
Vec2. mul(float a)
Return this vector multiplied by a scalar; does not alter this vector.static Vec2
Mat33. mul22(Mat33 A, Vec2 v)
Vec2
Vec2. mulLocal(float a)
Multiply this vector by a number and return result - alters this vector.static Vec2
Mat22. mulTrans(Mat22 R, Vec2 v)
Vec2
Mat22. mulTrans(Vec2 v)
Multiply a vector by the transpose of this matrix.static Vec2
Transform. mulTrans(Transform T, Vec2 v)
Vec2
Vec2. negate()
Return the negation of this vector; does not alter this vector.Vec2
Vec2. negateLocal()
Flip the vector and return it - alters this vector.Vec2
Vec2. set(float x, float y)
Set the vector component-wise.Vec2
Vec2. set(Vec2 v)
Set this vector to another vector.Vec2
Vec2. skew()
Get the skew vector such that dot(skew_vec, other) == cross(vec, other)Vec2
Mat22. solve(Vec2 b)
Solve A * x = b where A = this matrix.Vec2
Mat33. solve22(Vec2 b)
Solve A * x = b, where b is a column vector.Vec2
Vec2. sub(Vec2 v)
Return the difference of this vector and another; does not alter either one.Vec2
Vec2. subLocal(Vec2 v)
Subtract another vector from this one and return result - alters this vector.Methods in org.jbox2d.common with parameters of type Vec2 Modifier and Type Method Description static Vec2
Vec2. abs(Vec2 a)
static void
Vec2. absToOut(Vec2 a, Vec2 out)
Vec2
Vec2. add(Vec2 v)
Return the sum of this vector and another; does not alter either one.Vec2
Vec2. addLocal(Vec2 v)
Add another vector to this one and returns result - alters this vector.static Vec2
MathUtils. clamp(Vec2 a, Vec2 low, Vec2 high)
static void
MathUtils. clampToOut(Vec2 a, Vec2 low, Vec2 high, Vec2 dest)
static Vec2
Vec2. cross(float s, Vec2 a)
static Vec2
Vec2. cross(Vec2 a, float s)
static float
Vec2. cross(Vec2 a, Vec2 b)
static void
Vec2. crossToOut(float s, Vec2 a, Vec2 out)
static void
Vec2. crossToOut(Vec2 a, float s, Vec2 out)
static void
Vec2. crossToOutUnsafe(float s, Vec2 a, Vec2 out)
static void
Vec2. crossToOutUnsafe(Vec2 a, float s, Vec2 out)
static float
MathUtils. distance(Vec2 v1, Vec2 v2)
static float
MathUtils. distanceSquared(Vec2 v1, Vec2 v2)
static float
Vec2. dot(Vec2 a, Vec2 b)
void
IViewportTransform. getScreenToWorld(Vec2 argScreen, Vec2 argWorld)
takes the screen coordinates (argScreen) and puts the corresponding world coordinates in argWorld.void
OBBViewportTransform. getScreenToWorld(Vec2 argScreen, Vec2 argWorld)
void
IViewportTransform. getScreenVectorToWorld(Vec2 argScreen, Vec2 argWorld)
Transforms the given directional screen vector back to the world direction.void
OBBViewportTransform. getScreenVectorToWorld(Vec2 argScreen, Vec2 argWorld)
void
IViewportTransform. getWorldToScreen(Vec2 argWorld, Vec2 argScreen)
takes the world coordinate (argWorld) puts the corresponding screen coordinate in argScreen.void
OBBViewportTransform. getWorldToScreen(Vec2 argWorld, Vec2 argScreen)
void
IViewportTransform. getWorldVectorToScreen(Vec2 argWorld, Vec2 argScreen)
Transforms the given directional vector by the viewport transform (not positional)void
OBBViewportTransform. getWorldVectorToScreen(Vec2 argWorld, Vec2 argScreen)
void
Rot. getXAxis(Vec2 xAxis)
void
Rot. getYAxis(Vec2 yAxis)
static Vec2
Vec2. max(Vec2 a, Vec2 b)
static void
Vec2. maxToOut(Vec2 a, Vec2 b, Vec2 out)
static Vec2
Vec2. min(Vec2 a, Vec2 b)
static void
Vec2. minToOut(Vec2 a, Vec2 b, Vec2 out)
static Vec2
Mat22. mul(Mat22 R, Vec2 v)
Vec2
Mat22. mul(Vec2 v)
Multiply a vector by this matrix.static Vec2
Transform. mul(Transform T, Vec2 v)
static Vec2
Mat33. mul22(Mat33 A, Vec2 v)
static void
Mat33. mul22ToOut(Mat33 A, Vec2 v, Vec2 out)
static void
Mat33. mul22ToOutUnsafe(Mat33 A, Vec2 v, Vec2 out)
static void
Mat22. mulToOut(Mat22 R, Vec2 v, Vec2 out)
void
Mat22. mulToOut(Vec2 v, Vec2 out)
static void
Rot. mulToOut(Rot q, Vec2 v, Vec2 out)
static void
Transform. mulToOut(Transform T, Vec2 v, Vec2 out)
static void
Mat22. mulToOutUnsafe(Mat22 R, Vec2 v, Vec2 out)
void
Mat22. mulToOutUnsafe(Vec2 v, Vec2 out)
static void
Rot. mulToOutUnsafe(Rot q, Vec2 v, Vec2 out)
static void
Transform. mulToOutUnsafe(Transform T, Vec2 v, Vec2 out)
static Vec2
Mat22. mulTrans(Mat22 R, Vec2 v)
Vec2
Mat22. mulTrans(Vec2 v)
Multiply a vector by the transpose of this matrix.static void
Rot. mulTrans(Rot q, Vec2 v, Vec2 out)
static Vec2
Transform. mulTrans(Transform T, Vec2 v)
static void
Mat22. mulTransToOut(Mat22 R, Vec2 v, Vec2 out)
void
Mat22. mulTransToOut(Vec2 v, Vec2 out)
static void
Transform. mulTransToOut(Transform T, Vec2 v, Vec2 out)
static void
Mat22. mulTransToOutUnsafe(Mat22 R, Vec2 v, Vec2 out)
static void
Transform. mulTransToOutUnsafe(Transform T, Vec2 v, Vec2 out)
static void
Rot. mulTransUnsafe(Rot q, Vec2 v, Vec2 out)
static void
Vec2. negateToOut(Vec2 a, Vec2 out)
void
Mat22. set(Vec2 c1, Vec2 c2)
Set by column vectors.void
Transform. set(Vec2 p, float angle)
Set this based on the position and angle.Vec2
Vec2. set(Vec2 v)
Set this vector to another vector.void
IViewportTransform. setCenter(Vec2 argPos)
sets the center of the viewport.void
OBBViewportTransform. setCenter(Vec2 argPos)
void
IViewportTransform. setExtents(Vec2 argExtents)
This sets the half-width and half-height.void
OBBViewportTransform. setExtents(Vec2 argExtents)
void
Vec2. skew(Vec2 out)
Get the skew vector such that dot(skew_vec, other) == cross(vec, other)Vec2
Mat22. solve(Vec2 b)
Solve A * x = b where A = this matrix.Vec2
Mat33. solve22(Vec2 b)
Solve A * x = b, where b is a column vector.void
Mat33. solve22ToOut(Vec2 b, Vec2 out)
Solve A * x = b, where b is a column vector.void
Mat22. solveToOut(Vec2 b, Vec2 out)
Vec2
Vec2. sub(Vec2 v)
Return the difference of this vector and another; does not alter either one.Vec2
Vec2. subLocal(Vec2 v)
Subtract another vector from this one and return result - alters this vector.Constructors in org.jbox2d.common with parameters of type Vec2 Constructor Description Mat22(Vec2 c1, Vec2 c2)
Create a matrix with given vectors as columns.Transform(Vec2 _position, Rot _R)
Initialize using a position vector and a rotation matrix.Vec2(Vec2 toCopy)
-
Uses of Vec2 in org.jbox2d.dynamics
Fields in org.jbox2d.dynamics declared as Vec2 Modifier and Type Field Description private Vec2
World. axis
private Vec2
World. cA
private Vec2
World. cB
private Vec2
World. center
private Vec2
World. circCenterMoved
private Vec2
Fixture. displacement
Vec2
BodyDef. linearVelocity
The linear velocity of the body in world co-ordinates.private Vec2
World. liquidOffset
Vec2
Body. m_force
private Vec2
World. m_gravity
Vec2
Body. m_linearVelocity
private Vec2
WorldRayCastWrapper. point
Vec2
BodyDef. position
The world position of the body.private Vec2
WorldRayCastWrapper. temp
private Vec2
World. v1
private Vec2
World. v2
Methods in org.jbox2d.dynamics that return Vec2 Modifier and Type Method Description Vec2
World. getGravity()
Get the global gravity vector.Vec2
Body. getLinearVelocity()
Get the linear velocity of the center of mass.Vec2
Body. getLinearVelocityFromLocalPoint(Vec2 localPoint)
Get the world velocity of a local point.Vec2
Body. getLinearVelocityFromWorldPoint(Vec2 worldPoint)
Get the world linear velocity of a world point attached to this body.Vec2
Body. getLocalCenter()
Get the local position of the center of mass.Vec2
Body. getLocalPoint(Vec2 worldPoint)
Gets a local point relative to the body's origin given a world point.Vec2
Body. getLocalVector(Vec2 worldVector)
Gets a local vector given a world vector.Vec2
Body. getPosition()
Get the world body origin position.Vec2
Body. getWorldCenter()
Get the world position of the center of mass.Vec2
Body. getWorldPoint(Vec2 localPoint)
Get the world coordinates of a point given the local coordinates.Vec2
Body. getWorldVector(Vec2 localVector)
Get the world coordinates of a vector given the local coordinates.Methods in org.jbox2d.dynamics with parameters of type Vec2 Modifier and Type Method Description void
Body. applyForce(Vec2 force, Vec2 point)
Apply a force at a world point.void
Body. applyForceToCenter(Vec2 force)
Apply a force to the center of mass.void
Body. applyLinearImpulse(Vec2 impulse, Vec2 point)
Apply an impulse at a point.Vec2
Body. getLinearVelocityFromLocalPoint(Vec2 localPoint)
Get the world velocity of a local point.void
Body. getLinearVelocityFromLocalPointToOut(Vec2 localPoint, Vec2 out)
Vec2
Body. getLinearVelocityFromWorldPoint(Vec2 worldPoint)
Get the world linear velocity of a world point attached to this body.void
Body. getLinearVelocityFromWorldPointToOut(Vec2 worldPoint, Vec2 out)
Vec2
Body. getLocalPoint(Vec2 worldPoint)
Gets a local point relative to the body's origin given a world point.void
Body. getLocalPointToOut(Vec2 worldPoint, Vec2 out)
Vec2
Body. getLocalVector(Vec2 worldVector)
Gets a local vector given a world vector.void
Body. getLocalVectorToOut(Vec2 worldVector, Vec2 out)
void
Body. getLocalVectorToOutUnsafe(Vec2 worldVector, Vec2 out)
Vec2
Body. getWorldPoint(Vec2 localPoint)
Get the world coordinates of a point given the local coordinates.void
Body. getWorldPointToOut(Vec2 localPoint, Vec2 out)
Vec2
Body. getWorldVector(Vec2 localVector)
Get the world coordinates of a vector given the local coordinates.void
Body. getWorldVectorToOut(Vec2 localVector, Vec2 out)
void
Body. getWorldVectorToOutUnsafe(Vec2 localVector, Vec2 out)
void
World. raycast(RayCastCallback callback, Vec2 point1, Vec2 point2)
Ray-cast the world for all fixtures in the path of the ray.void
World. setGravity(Vec2 gravity)
Change the global gravity vector.void
Body. setLinearVelocity(Vec2 v)
Set the linear velocity of the center of mass.void
Body. setTransform(Vec2 position, float angle)
Set the position of the body's origin and rotation.void
Island. solve(Profile profile, TimeStep step, Vec2 gravity, boolean allowSleep)
boolean
Fixture. testPoint(Vec2 p)
Test a point for containment in this fixture.Constructors in org.jbox2d.dynamics with parameters of type Vec2 Constructor Description World(Vec2 gravity)
Construct a world object.World(Vec2 gravity, IWorldPool pool)
Construct a world object.World(Vec2 gravity, IWorldPool argPool, BroadPhaseStrategy broadPhaseStrategy)
-
Uses of Vec2 in org.jbox2d.dynamics.contacts
Fields in org.jbox2d.dynamics.contacts declared as Vec2 Modifier and Type Field Description private Vec2
ContactSolver. a
private Vec2
ContactSolver. b
Vec2
Position. c
private Vec2
ContactSolver. d
private Vec2
ContactSolver. dv1
private Vec2
ContactSolver. dv2
(package private) Vec2
ContactPositionConstraint. localCenterA
(package private) Vec2
ContactPositionConstraint. localCenterB
(package private) Vec2
ContactPositionConstraint. localNormal
(package private) Vec2
ContactPositionConstraint. localPoint
(package private) Vec2[]
ContactPositionConstraint. localPoints
Vec2
ContactVelocityConstraint. normal
Vec2
PositionSolverManifold. normal
private Vec2
ContactSolver. P
private Vec2
ContactSolver. P1
private Vec2
ContactSolver. P2
Vec2
PositionSolverManifold. point
private Vec2
ContactSolver. rA
Vec2
ContactVelocityConstraint.VelocityConstraintPoint. rA
private Vec2
ContactSolver. rB
Vec2
ContactVelocityConstraint.VelocityConstraintPoint. rB
private Vec2
ContactSolver. tangent
private Vec2
ContactSolver. temp
private Vec2
ContactSolver. temp1
private Vec2
ContactSolver. temp2
Vec2
Velocity. v
private Vec2
ContactSolver. x
-
Uses of Vec2 in org.jbox2d.dynamics.joints
Fields in org.jbox2d.dynamics.joints declared as Vec2 Modifier and Type Field Description private Vec2
WheelJoint. d
Vec2
PulleyJointDef. groundAnchorA
The first ground anchor in world coordinates.Vec2
PulleyJointDef. groundAnchorB
The second ground anchor in world coordinates.Vec2
Jacobian. linearA
Vec2
DistanceJointDef. localAnchorA
The local anchor point relative to body1's origin.Vec2
FrictionJointDef. localAnchorA
The local anchor point relative to bodyA's origin.Vec2
PrismaticJointDef. localAnchorA
The local anchor point relative to body1's origin.Vec2
PulleyJointDef. localAnchorA
The local anchor point relative to bodyA's origin.Vec2
RevoluteJointDef. localAnchorA
The local anchor point relative to body1's origin.Vec2
RopeJointDef. localAnchorA
The local anchor point relative to bodyA's origin.Vec2
WeldJointDef. localAnchorA
The local anchor point relative to body1's origin.Vec2
WheelJointDef. localAnchorA
The local anchor point relative to body1's origin.Vec2
DistanceJointDef. localAnchorB
The local anchor point relative to body2's origin.Vec2
FrictionJointDef. localAnchorB
The local anchor point relative to bodyB's origin.Vec2
PrismaticJointDef. localAnchorB
The local anchor point relative to body2's origin.Vec2
PulleyJointDef. localAnchorB
The local anchor point relative to bodyB's origin.Vec2
RevoluteJointDef. localAnchorB
The local anchor point relative to body2's origin.Vec2
RopeJointDef. localAnchorB
The local anchor point relative to bodyB's origin.Vec2
WeldJointDef. localAnchorB
The local anchor point relative to body2's origin.Vec2
WheelJointDef. localAnchorB
The local anchor point relative to body2's origin.Vec2
PrismaticJointDef. localAxisA
The local translation axis in body1.Vec2
WheelJointDef. localAxisA
The local translation axis in body1.private Vec2
WheelJoint. m_ax
private Vec2
PrismaticJoint. m_axis
private Vec2
WheelJoint. m_ay
private Vec2
MouseJoint. m_C
private Vec2
PulleyJoint. m_groundAnchorA
private Vec2
PulleyJoint. m_groundAnchorB
private Vec2
MouseJoint. m_impulse
private Vec2
GearJoint. m_JvAC
private Vec2
GearJoint. m_JvBD
private Vec2
GearJoint. m_lcA
private Vec2
GearJoint. m_lcB
private Vec2
GearJoint. m_lcC
private Vec2
GearJoint. m_lcD
private Vec2
FrictionJoint. m_linearImpulse
private Vec2
DistanceJoint. m_localAnchorA
private Vec2
FrictionJoint. m_localAnchorA
private Vec2
GearJoint. m_localAnchorA
protected Vec2
PrismaticJoint. m_localAnchorA
private Vec2
PulleyJoint. m_localAnchorA
protected Vec2
RevoluteJoint. m_localAnchorA
private Vec2
RopeJoint. m_localAnchorA
private Vec2
WeldJoint. m_localAnchorA
private Vec2
WheelJoint. m_localAnchorA
private Vec2
DistanceJoint. m_localAnchorB
private Vec2
FrictionJoint. m_localAnchorB
private Vec2
GearJoint. m_localAnchorB
private Vec2
MouseJoint. m_localAnchorB
protected Vec2
PrismaticJoint. m_localAnchorB
private Vec2
PulleyJoint. m_localAnchorB
protected Vec2
RevoluteJoint. m_localAnchorB
private Vec2
RopeJoint. m_localAnchorB
private Vec2
WeldJoint. m_localAnchorB
private Vec2
WheelJoint. m_localAnchorB
private Vec2
GearJoint. m_localAnchorC
private Vec2
GearJoint. m_localAnchorD
private Vec2
GearJoint. m_localAxisC
private Vec2
GearJoint. m_localAxisD
private Vec2
DistanceJoint. m_localCenterA
private Vec2
FrictionJoint. m_localCenterA
private Vec2
PrismaticJoint. m_localCenterA
private Vec2
PulleyJoint. m_localCenterA
private Vec2
RevoluteJoint. m_localCenterA
private Vec2
RopeJoint. m_localCenterA
private Vec2
WeldJoint. m_localCenterA
private Vec2
WheelJoint. m_localCenterA
private Vec2
DistanceJoint. m_localCenterB
private Vec2
FrictionJoint. m_localCenterB
private Vec2
MouseJoint. m_localCenterB
private Vec2
PrismaticJoint. m_localCenterB
private Vec2
PulleyJoint. m_localCenterB
private Vec2
RevoluteJoint. m_localCenterB
private Vec2
RopeJoint. m_localCenterB
private Vec2
WeldJoint. m_localCenterB
private Vec2
WheelJoint. m_localCenterB
protected Vec2
PrismaticJoint. m_localXAxisA
private Vec2
WheelJoint. m_localXAxisA
protected Vec2
PrismaticJoint. m_localYAxisA
private Vec2
WheelJoint. m_localYAxisA
private Vec2
PrismaticJoint. m_perp
private Vec2
DistanceJoint. m_rA
private Vec2
FrictionJoint. m_rA
private Vec2
PulleyJoint. m_rA
private Vec2
RevoluteJoint. m_rA
private Vec2
RopeJoint. m_rA
private Vec2
WeldJoint. m_rA
private Vec2
DistanceJoint. m_rB
private Vec2
FrictionJoint. m_rB
private Vec2
MouseJoint. m_rB
private Vec2
PulleyJoint. m_rB
private Vec2
RevoluteJoint. m_rB
private Vec2
RopeJoint. m_rB
private Vec2
WeldJoint. m_rB
private Vec2
MouseJoint. m_targetA
private Vec2
DistanceJoint. m_u
private Vec2
RopeJoint. m_u
private Vec2
PulleyJoint. m_uA
private Vec2
PulleyJoint. m_uB
private Vec2[]
ConstantVolumeJoint. normals
private Vec2
WheelJoint. rA
private Vec2
WheelJoint. rB
Vec2
MouseJointDef. target
The initial world target point.Methods in org.jbox2d.dynamics.joints that return Vec2 Modifier and Type Method Description Vec2
PulleyJoint. getGroundAnchorA()
Vec2
PulleyJoint. getGroundAnchorB()
Vec2
DistanceJoint. getLocalAnchorA()
Vec2
FrictionJoint. getLocalAnchorA()
Vec2
PrismaticJoint. getLocalAnchorA()
Vec2
PulleyJoint. getLocalAnchorA()
Vec2
RevoluteJoint. getLocalAnchorA()
Vec2
RopeJoint. getLocalAnchorA()
Vec2
WeldJoint. getLocalAnchorA()
Vec2
WheelJoint. getLocalAnchorA()
Vec2
DistanceJoint. getLocalAnchorB()
Vec2
FrictionJoint. getLocalAnchorB()
Vec2
PrismaticJoint. getLocalAnchorB()
Vec2
PulleyJoint. getLocalAnchorB()
Vec2
RevoluteJoint. getLocalAnchorB()
Vec2
RopeJoint. getLocalAnchorB()
Vec2
WeldJoint. getLocalAnchorB()
Vec2
WheelJoint. getLocalAnchorB()
Vec2
PrismaticJoint. getLocalAxisA()
Vec2
WheelJoint. getLocalAxisA()
For serializationVec2
MouseJoint. getTarget()
Methods in org.jbox2d.dynamics.joints with parameters of type Vec2 Modifier and Type Method Description void
ConstantVolumeJoint. getAnchorA(Vec2 argOut)
No-opvoid
DistanceJoint. getAnchorA(Vec2 argOut)
void
FrictionJoint. getAnchorA(Vec2 argOut)
void
GearJoint. getAnchorA(Vec2 argOut)
abstract void
Joint. getAnchorA(Vec2 out)
get the anchor point on bodyA in world coordinates.void
MouseJoint. getAnchorA(Vec2 argOut)
void
PrismaticJoint. getAnchorA(Vec2 argOut)
void
PulleyJoint. getAnchorA(Vec2 argOut)
void
RevoluteJoint. getAnchorA(Vec2 argOut)
void
RopeJoint. getAnchorA(Vec2 argOut)
void
WeldJoint. getAnchorA(Vec2 argOut)
void
WheelJoint. getAnchorA(Vec2 argOut)
void
ConstantVolumeJoint. getAnchorB(Vec2 argOut)
No-opvoid
DistanceJoint. getAnchorB(Vec2 argOut)
void
FrictionJoint. getAnchorB(Vec2 argOut)
void
GearJoint. getAnchorB(Vec2 argOut)
abstract void
Joint. getAnchorB(Vec2 out)
get the anchor point on bodyB in world coordinates.void
MouseJoint. getAnchorB(Vec2 argOut)
void
PrismaticJoint. getAnchorB(Vec2 argOut)
void
PulleyJoint. getAnchorB(Vec2 argOut)
void
RevoluteJoint. getAnchorB(Vec2 argOut)
void
RopeJoint. getAnchorB(Vec2 argOut)
void
WeldJoint. getAnchorB(Vec2 argOut)
void
WheelJoint. getAnchorB(Vec2 argOut)
void
ConstantVolumeJoint. getReactionForce(float inv_dt, Vec2 argOut)
No-opvoid
DistanceJoint. getReactionForce(float inv_dt, Vec2 argOut)
Get the reaction force given the inverse time step.void
FrictionJoint. getReactionForce(float inv_dt, Vec2 argOut)
void
GearJoint. getReactionForce(float inv_dt, Vec2 argOut)
abstract void
Joint. getReactionForce(float inv_dt, Vec2 out)
get the reaction force on body2 at the joint anchor in Newtons.void
MouseJoint. getReactionForce(float invDt, Vec2 argOut)
void
PrismaticJoint. getReactionForce(float inv_dt, Vec2 argOut)
void
PulleyJoint. getReactionForce(float inv_dt, Vec2 argOut)
void
RevoluteJoint. getReactionForce(float inv_dt, Vec2 argOut)
void
RopeJoint. getReactionForce(float inv_dt, Vec2 argOut)
void
WeldJoint. getReactionForce(float inv_dt, Vec2 argOut)
void
WheelJoint. getReactionForce(float inv_dt, Vec2 argOut)
void
DistanceJointDef. initialize(Body b1, Body b2, Vec2 anchor1, Vec2 anchor2)
Initialize the bodies, anchors, and length using the world anchors.void
FrictionJointDef. initialize(Body bA, Body bB, Vec2 anchor)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.void
PrismaticJointDef. initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.void
PulleyJointDef. initialize(Body b1, Body b2, Vec2 ga1, Vec2 ga2, Vec2 anchor1, Vec2 anchor2, float r)
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.void
RevoluteJointDef. initialize(Body b1, Body b2, Vec2 anchor)
Initialize the bodies, anchors, and reference angle using the world anchor.void
WeldJointDef. initialize(Body bA, Body bB, Vec2 anchor)
Initialize the bodies, anchors, and reference angle using a world anchor point.void
WheelJointDef. initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis)
void
MouseJoint. setTarget(Vec2 target)
-
Uses of Vec2 in org.jbox2d.pooling
Methods in org.jbox2d.pooling that return Vec2 Modifier and Type Method Description Vec2[]
IWorldPool. getVec2Array(int argLength)
Vec2
IWorldPool. popVec2()
Vec2[]
IWorldPool. popVec2(int num)
-
Uses of Vec2 in org.jbox2d.pooling.arrays
Methods in org.jbox2d.pooling.arrays that return Vec2 Modifier and Type Method Description Vec2[]
Vec2Array. get(int argLength)
protected Vec2[]
Vec2Array. getInitializedArray(int argLength)
-
Uses of Vec2 in org.jbox2d.pooling.normal
Fields in org.jbox2d.pooling.normal with type parameters of type Vec2 Modifier and Type Field Description private OrderedStack<Vec2>
DefaultWorldPool. vecs
Methods in org.jbox2d.pooling.normal that return Vec2 Modifier and Type Method Description Vec2[]
DefaultWorldPool. getVec2Array(int argLength)
Vec2
DefaultWorldPool. popVec2()
Vec2[]
DefaultWorldPool. popVec2(int argNum)
-
Uses of Vec2 in org.jbox2d.serialization.pb
Methods in org.jbox2d.serialization.pb that return Vec2 Modifier and Type Method Description private Vec2
PbDeserializer. pbToVec(Box2D.PbVec2 argVec)
Methods in org.jbox2d.serialization.pb with parameters of type Vec2 Modifier and Type Method Description private Box2D.PbVec2
PbSerializer. vecToPb(Vec2 argVec)
-
Uses of Vec2 in org.jbox2d.testbed.framework
Fields in org.jbox2d.testbed.framework declared as Vec2 Modifier and Type Field Description private Vec2
TestbedTest. bombSpawnPoint
private Vec2
TestbedTest. cachedCameraPos
private Vec2
TestbedModel. mouse
private Vec2
TestbedTest. mouseWorld
Vec2
ContactPoint. normal
Vec2
QueueItem. p
private Vec2
TestbedTest. p
private Vec2
TestbedTest. p1
private Vec2
TestbedTest. p2
Vec2
TestQueryCallback. point
Vec2
ContactPoint. position
private Vec2
TestbedTest. tangent
private Vec2
TestbedTest. v
private Vec2
TestbedTest. vel
Methods in org.jbox2d.testbed.framework that return Vec2 Modifier and Type Method Description Vec2
TestbedTest. getCachedCameraPos()
Vec2
TestbedTest. getDefaultCameraPos()
Override for a different default camera posVec2
TestbedModel. getMouse()
Vec2
TestbedTest. getWorldMouse()
Gets the world position of the mouseMethods in org.jbox2d.testbed.framework with parameters of type Vec2 Modifier and Type Method Description void
TestbedTest. completeBombSpawn(Vec2 p)
void
TestbedTest. launchBomb(Vec2 position, Vec2 velocity)
void
TestbedTest. mouseDown(Vec2 p)
Called for mouse-downvoid
TestbedTest. mouseMove(Vec2 p)
Called when mouse is movedvoid
TestbedTest. mouseUp(Vec2 p)
Called for mouse-upvoid
TestbedTest. queueMouseDown(Vec2 p)
void
TestbedTest. queueMouseMove(Vec2 p)
void
TestbedTest. queueMouseUp(Vec2 p)
void
TestbedTest. queueShiftMouseDown(Vec2 p)
void
TestbedTest. setCachedCameraPos(Vec2 argPos)
void
TestbedTest. setCamera(Vec2 argPos)
void
TestbedTest. setCamera(Vec2 argPos, float scale)
Sets the current testbed cameravoid
TestbedModel. setMouse(Vec2 argMouse)
void
TestbedTest. shiftMouseDown(Vec2 p)
Called when shift-mouse down occursvoid
TestbedTest. spawnBomb(Vec2 worldPt)
Constructors in org.jbox2d.testbed.framework with parameters of type Vec2 Constructor Description QueueItem(QueueItemType t, Vec2 pt)
-
Uses of Vec2 in org.jbox2d.testbed.framework.j2d
Fields in org.jbox2d.testbed.framework.j2d declared as Vec2 Modifier and Type Field Description private Vec2
TestPanelJ2D. dragginMouse
private Vec2
DebugDrawJ2D. saxis
private Vec2
DebugDrawJ2D. sp1
private Vec2
DebugDrawJ2D. sp2
private Vec2
DebugDrawJ2D. temp
private Vec2
DebugDrawJ2D. temp2
Methods in org.jbox2d.testbed.framework.j2d with parameters of type Vec2 Modifier and Type Method Description void
DebugDrawJ2D. drawCircle(Vec2 center, float radius, Color3f color)
void
DebugDrawJ2D. drawPoint(Vec2 argPoint, float argRadiusOnScreen, Color3f argColor)
void
DebugDrawJ2D. drawSegment(Vec2 p1, Vec2 p2, Color3f color)
void
DebugDrawJ2D. drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color)
void
DebugDrawJ2D. drawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color)
private void
DebugDrawJ2D. generateCirle(Vec2 argCenter, float argRadius, Vec2[] argPoints, int argNumPoints)
-
Uses of Vec2 in org.jbox2d.testbed.perf
Fields in org.jbox2d.testbed.perf declared as Vec2 Modifier and Type Field Description Vec2
PoolingPerf. mv
(package private) Vec2[]
PoolingPerf.CirclePool. pool
(package private) Vec2[]
PoolingPerf.CustStack. pool
Methods in org.jbox2d.testbed.perf that return Vec2 Modifier and Type Method Description Vec2
PoolingPerf.CirclePool. get()
Vec2
PoolingPerf.CustStack. get()
protected Vec2
PoolingPerf.TLVec2. initialValue()
Methods in org.jbox2d.testbed.perf with parameters of type Vec2 Modifier and Type Method Description float
PoolingPerf. op(Vec2 argVec)
float
StackTest. op(Vec2 argVec)
-
Uses of Vec2 in org.jbox2d.testbed.tests
Fields in org.jbox2d.testbed.tests declared as Vec2 Modifier and Type Field Description (package private) Vec2
RayCastTest. d
(package private) Vec2
EdgeShapesCallback. m_normal
(package private) Vec2
RayCastAnyCallback. m_normal
(package private) Vec2
RayCastClosestCallback. m_normal
(package private) Vec2[]
RayCastMultipleCallback. m_normals
(package private) Vec2
TheoJansen. m_offset
(package private) Vec2
EdgeShapesCallback. m_point
(package private) Vec2
RayCastAnyCallback. m_point
(package private) Vec2
RayCastClosestCallback. m_point
private Vec2[]
ConvexHull. m_points
(package private) Vec2[]
RayCastMultipleCallback. m_points
(package private) Vec2
DistanceTest. m_positionB
(package private) Vec2
Breakable. m_velocity
(package private) Vec2
RayCastTest. point1
(package private) Vec2
RayCastTest. point2
(package private) Vec2
RayCastTest. pooledHead
(package private) Vec2[]
DistanceTest. v
Methods in org.jbox2d.testbed.tests that return Vec2 Modifier and Type Method Description Vec2
CircleStress. getDefaultCameraPos()
Vec2
DominoTower. getDefaultCameraPos()
Methods in org.jbox2d.testbed.tests with parameters of type Vec2 Modifier and Type Method Description (package private) void
TheoJansen. createLeg(float s, Vec2 wheelAnchor)
float
EdgeShapesCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)
float
RayCastAnyCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)
float
RayCastClosestCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)
float
RayCastMultipleCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)
-