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 Vec2DebugDraw. getScreenToWorld(float screenX, float screenY)takes the screen coordinates and returns the world coordinates.Vec2DebugDraw. getScreenToWorld(Vec2 argScreen)takes the screen coordinates (argScreen) and returns the world coordinatesVec2DebugDraw. getWorldToScreen(float worldX, float worldY)Takes the world coordinates and returns the screen coordinates.Vec2DebugDraw. 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 voidDebugDraw. drawCircle(Vec2 center, float radius, Color3f color)Draw a circle.abstract voidDebugDraw. drawPoint(Vec2 argPoint, float argRadiusOnScreen, Color3f argColor)voidDebugDraw. drawPolygon(Vec2[] vertices, int vertexCount, Color3f color)Draw a closed polygon provided in CCW order.abstract voidDebugDraw. drawSegment(Vec2 p1, Vec2 p2, Color3f color)Draw a line segment.abstract voidDebugDraw. drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color)Draw a solid circle.abstract voidDebugDraw. drawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color)Draw a solid closed polygon provided in CCW order.voidDebugDraw. drawString(Vec2 pos, java.lang.String s, Color3f color)Vec2DebugDraw. getScreenToWorld(Vec2 argScreen)takes the screen coordinates (argScreen) and returns the world coordinatesvoidDebugDraw. getScreenToWorldToOut(float screenX, float screenY, Vec2 argWorld)takes the screen coordinates and puts the corresponding world coordinates in argWorld.voidDebugDraw. getScreenToWorldToOut(Vec2 argScreen, Vec2 argWorld)Vec2DebugDraw. getWorldToScreen(Vec2 argWorld)takes the world coordinate (argWorld) and returns the screen coordinates.voidDebugDraw. getWorldToScreenToOut(float worldX, float worldY, Vec2 argScreen)Takes the world coordinates and puts the corresponding screen coordinates in argScreen.voidDebugDraw. getWorldToScreenToOut(Vec2 argWorld, Vec2 argScreen)floatRayCastCallback. 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 Vec2SeparationFunction. axisAprivate Vec2SeparationFunction. axisBprivate Vec2Distance.Simplex. case2private Vec2Distance.Simplex. case22private Vec2Distance.Simplex. case3private Vec2Distance.Simplex. case33private Vec2Distance. closestPointprivate static Vec2Collision. dprivate Vec2Distance. dprivate Vec2Collision. eprivate Vec2Collision. e1private Vec2Distance.Simplex. e12private Vec2Distance.Simplex. e13private Vec2Distance.Simplex. e23private Vec2Collision.EPCollider. edge0private Vec2Collision.EPCollider. edge1private Vec2Collision.EPCollider. edge2private Vec2Collision. localNormalVec2Manifold. localNormalnot use for Type::e_pointsVec2Manifold. localPointusage depends on manifold typeVec2ManifoldPoint. localPointusage depends on manifold typeprivate Vec2SeparationFunction. localPointAprivate Vec2SeparationFunction. localPointA1private Vec2SeparationFunction. localPointA2private Vec2SeparationFunction. localPointBprivate Vec2SeparationFunction. localPointB1private Vec2SeparationFunction. localPointB2private Vec2Collision. localTangentVec2AABB. lowerBoundBottom left vertex of bounding box.Vec2SeparationFunction. m_axisVec2[]Distance.DistanceProxy. m_buffer(package private) Vec2Collision.EPCollider. m_centroidBVec2SeparationFunction. m_localPoint(package private) Vec2Collision.EPCollider. m_lowerLimit(package private) Vec2Collision.EPCollider. m_normal(package private) Vec2Collision.EPCollider. m_normal0(package private) Vec2Collision.EPCollider. m_normal1(package private) Vec2Collision.EPCollider. m_normal2(package private) Vec2Collision.EPCollider. m_upperLimit(package private) Vec2Collision.EPCollider. m_v0(package private) Vec2Collision.EPCollider. m_v1(package private) Vec2Collision.EPCollider. m_v2(package private) Vec2Collision.EPCollider. m_v3Vec2[]Distance.DistanceProxy. m_verticesprivate Vec2Collision.EPCollider. nprivate Vec2Collision. n(package private) Vec2Collision.ReferenceFace. normalprivate Vec2Distance. normalVec2RayCastOutput. normalprivate Vec2SeparationFunction. normalVec2WorldManifold. normalWorld vector pointing from A to B(package private) Vec2[]Collision.TempPolygon. normalsprivate Vec2Collision. PVec2RayCastInput. p1Vec2RayCastInput. p2private Vec2Collision.EPCollider. perpprivate Vec2Collision. planePointVec2DistanceOutput. pointAClosest point on shapeAprivate Vec2SeparationFunction. pointAVec2DistanceOutput. pointBClosest point on shapeBprivate Vec2SeparationFunction. pointBVec2[]WorldManifold. pointsWorld contact point (point of intersection)private Vec2WorldManifold. pool3private Vec2WorldManifold. pool4private Vec2Collision. Q(package private) Vec2Collision.ReferenceFace. sideNormal1(package private) Vec2Collision.ReferenceFace. sideNormal2private Vec2Collision. tangentprivate Vec2Collision.EPCollider. tempprivate Vec2Collision. tempprivate Vec2Distance. tempprivate Vec2SeparationFunction. tempVec2AABB. upperBoundTop right vertex of bounding box.Vec2Collision.ClipVertex. v(package private) Vec2Collision.ReferenceFace. v1private Vec2Collision. v11private Vec2Collision. v12(package private) Vec2Collision.ReferenceFace. v2(package private) Vec2[]Collision.TempPolygon. verticesVec2Distance.SimplexVertex. wprivate Vec2Distance.Simplex. w1private Vec2Distance.Simplex. w2private Vec2Distance.Simplex. w3Vec2Distance.SimplexVertex. wAVec2Distance.SimplexVertex. wBMethods in org.jbox2d.collision that return Vec2 Modifier and Type Method Description Vec2AABB. getCenter()Get the center of the AABBVec2AABB. getExtents()Get the extents of the AABB (half-widths).Vec2Distance.DistanceProxy. getSupportVertex(Vec2 d)Get the supporting vertex in the given direction.Vec2Distance.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 intCollision. clipSegmentToLine(Collision.ClipVertex[] vOut, Collision.ClipVertex[] vIn, Vec2 normal, float offset, int vertexIndexA)Clipping for contact manifolds.voidAABB. getCenterToOut(Vec2 out)voidDistance.Simplex. getClosestPoint(Vec2 out)this returns pooled objects.voidAABB. getExtentsToOut(Vec2 out)voidDistance.Simplex. getSearchDirection(Vec2 out)intDistance.DistanceProxy. getSupport(Vec2 d)Get the supporting vertex index in the given direction.Vec2Distance.DistanceProxy. getSupportVertex(Vec2 d)Get the supporting vertex in the given direction.voidAABB. getVertices(Vec2[] argRay)voidDistance.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. drawVecsprivate Vec2DynamicTree. rprivate Vec2DynamicTree. textVecMethods in org.jbox2d.collision.broadphase with parameters of type Vec2 Modifier and Type Method Description voidBroadPhase. 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).booleanBroadPhaseStrategy. moveProxy(int proxyId, AABB aabb, Vec2 displacement)Move a proxy with a swepted AABB.booleanDynamicTree. 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 Vec2MassData. centerThe position of the shape's centroid relative to the shape's origin.Vec2PolygonShape. m_centroidLocal position of the shape centroid in parent body frame.Vec2ChainShape. m_nextVertexVec2[]PolygonShape. m_normalsThe normals of the shape.Vec2CircleShape. m_pVec2ChainShape. m_prevVertexVec2EdgeShape. m_vertex0optional adjacent vertex 1.Vec2EdgeShape. m_vertex1edge vertex 1Vec2EdgeShape. m_vertex2edge vertex 2Vec2EdgeShape. m_vertex3optional adjacent vertex 2.Vec2[]ChainShape. m_verticesVec2[]PolygonShape. m_verticesThe vertices of the shape.private Vec2EdgeShape. normalprivate Vec2PolygonShape. pool1private Vec2PolygonShape. pool2private Vec2PolygonShape. pool3private Vec2PolygonShape. pool4Methods in org.jbox2d.collision.shapes that return Vec2 Modifier and Type Method Description Vec2PolygonShape. centroid(Transform xf)Get the centroid and apply the supplied transform.Vec2PolygonShape. centroidToOut(Transform xf, Vec2 out)Get the centroid and apply the supplied transform.Vec2[]PolygonShape. getNormals()Get the edge normal vectors.Vec2CircleShape. getSupportVertex(Vec2 d)Get the supporting vertex in the given direction.Vec2CircleShape. getVertex(int index)Get a vertex by index.Vec2PolygonShape. 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 Vec2PolygonShape. centroidToOut(Transform xf, Vec2 out)Get the centroid and apply the supplied transform.voidPolygonShape. computeCentroidToOut(Vec2[] vs, int count, Vec2 out)voidChainShape. createChain(Vec2[] vertices, int count)Create a chain with isolated end vertices.voidChainShape. createLoop(Vec2[] vertices, int count)Create a loop.intCircleShape. getSupport(Vec2 d)Get the supporting vertex index in the given direction.Vec2CircleShape. getSupportVertex(Vec2 d)Get the supporting vertex in the given direction.voidEdgeShape. set(Vec2 v1, Vec2 v2)voidPolygonShape. set(Vec2[] vertices, int count)Create a convex hull from the given array of points.voidPolygonShape. set(Vec2[] verts, int num, Vec2Array vecPool, IntArray intPool)Create a convex hull from the given array of points.voidPolygonShape. setAsBox(float hx, float hy, Vec2 center, float angle)Build vertices to represent an oriented box.voidChainShape. setNextVertex(Vec2 nextVertex)Establish connectivity to a vertex that follows the last vertex.voidChainShape. setPrevVertex(Vec2 prevVertex)Establish connectivity to a vertex that precedes the first vertex.booleanChainShape. testPoint(Transform xf, Vec2 p)booleanCircleShape. testPoint(Transform transform, Vec2 p)booleanEdgeShape. testPoint(Transform xf, Vec2 p)booleanPolygonShape. testPoint(Transform xf, Vec2 p)abstract booleanShape. 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 Vec2Sweep. cCenter world positionsVec2Sweep. c0Center world positionsVec2OBBViewportTransform.OBB. centerVec2Mat22. exVec2OBBViewportTransform.OBB. extentsVec2Mat22. eyVec2Sweep. localCenterLocal center of mass positionVec2RaycastResult. normalVec2Transform. pThe translation caused by the transformprivate static Vec2Transform. poolMethods in org.jbox2d.common that return Vec2 Modifier and Type Method Description Vec2Vec2. abs()Return a new vector that has positive components.static Vec2Vec2. abs(Vec2 a)Vec2Vec2. add(Vec2 v)Return the sum of this vector and another; does not alter either one.Vec2Vec2. addLocal(float x, float y)Adds values to this vector and returns result - alters this vector.Vec2Vec2. addLocal(Vec2 v)Add another vector to this one and returns result - alters this vector.static Vec2MathUtils. clamp(Vec2 a, Vec2 low, Vec2 high)Vec2Vec2. clone()Return a copy of this vector.static Vec2Vec2. cross(float s, Vec2 a)static Vec2Vec2. cross(Vec2 a, float s)Vec2IViewportTransform. getCenter()center of the viewport.Vec2OBBViewportTransform. getCenter()Vec2IViewportTransform. getExtents()This is the half-width and half-height.Vec2OBBViewportTransform. getExtents()static Vec2Vec2. max(Vec2 a, Vec2 b)static Vec2Vec2. min(Vec2 a, Vec2 b)static Vec2Mat22. mul(Mat22 R, Vec2 v)Vec2Mat22. mul(Vec2 v)Multiply a vector by this matrix.static Vec2Transform. mul(Transform T, Vec2 v)Vec2Vec2. mul(float a)Return this vector multiplied by a scalar; does not alter this vector.static Vec2Mat33. mul22(Mat33 A, Vec2 v)Vec2Vec2. mulLocal(float a)Multiply this vector by a number and return result - alters this vector.static Vec2Mat22. mulTrans(Mat22 R, Vec2 v)Vec2Mat22. mulTrans(Vec2 v)Multiply a vector by the transpose of this matrix.static Vec2Transform. mulTrans(Transform T, Vec2 v)Vec2Vec2. negate()Return the negation of this vector; does not alter this vector.Vec2Vec2. negateLocal()Flip the vector and return it - alters this vector.Vec2Vec2. set(float x, float y)Set the vector component-wise.Vec2Vec2. set(Vec2 v)Set this vector to another vector.Vec2Vec2. skew()Get the skew vector such that dot(skew_vec, other) == cross(vec, other)Vec2Mat22. solve(Vec2 b)Solve A * x = b where A = this matrix.Vec2Mat33. solve22(Vec2 b)Solve A * x = b, where b is a column vector.Vec2Vec2. sub(Vec2 v)Return the difference of this vector and another; does not alter either one.Vec2Vec2. 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 Vec2Vec2. abs(Vec2 a)static voidVec2. absToOut(Vec2 a, Vec2 out)Vec2Vec2. add(Vec2 v)Return the sum of this vector and another; does not alter either one.Vec2Vec2. addLocal(Vec2 v)Add another vector to this one and returns result - alters this vector.static Vec2MathUtils. clamp(Vec2 a, Vec2 low, Vec2 high)static voidMathUtils. clampToOut(Vec2 a, Vec2 low, Vec2 high, Vec2 dest)static Vec2Vec2. cross(float s, Vec2 a)static Vec2Vec2. cross(Vec2 a, float s)static floatVec2. cross(Vec2 a, Vec2 b)static voidVec2. crossToOut(float s, Vec2 a, Vec2 out)static voidVec2. crossToOut(Vec2 a, float s, Vec2 out)static voidVec2. crossToOutUnsafe(float s, Vec2 a, Vec2 out)static voidVec2. crossToOutUnsafe(Vec2 a, float s, Vec2 out)static floatMathUtils. distance(Vec2 v1, Vec2 v2)static floatMathUtils. distanceSquared(Vec2 v1, Vec2 v2)static floatVec2. dot(Vec2 a, Vec2 b)voidIViewportTransform. getScreenToWorld(Vec2 argScreen, Vec2 argWorld)takes the screen coordinates (argScreen) and puts the corresponding world coordinates in argWorld.voidOBBViewportTransform. getScreenToWorld(Vec2 argScreen, Vec2 argWorld)voidIViewportTransform. getScreenVectorToWorld(Vec2 argScreen, Vec2 argWorld)Transforms the given directional screen vector back to the world direction.voidOBBViewportTransform. getScreenVectorToWorld(Vec2 argScreen, Vec2 argWorld)voidIViewportTransform. getWorldToScreen(Vec2 argWorld, Vec2 argScreen)takes the world coordinate (argWorld) puts the corresponding screen coordinate in argScreen.voidOBBViewportTransform. getWorldToScreen(Vec2 argWorld, Vec2 argScreen)voidIViewportTransform. getWorldVectorToScreen(Vec2 argWorld, Vec2 argScreen)Transforms the given directional vector by the viewport transform (not positional)voidOBBViewportTransform. getWorldVectorToScreen(Vec2 argWorld, Vec2 argScreen)voidRot. getXAxis(Vec2 xAxis)voidRot. getYAxis(Vec2 yAxis)static Vec2Vec2. max(Vec2 a, Vec2 b)static voidVec2. maxToOut(Vec2 a, Vec2 b, Vec2 out)static Vec2Vec2. min(Vec2 a, Vec2 b)static voidVec2. minToOut(Vec2 a, Vec2 b, Vec2 out)static Vec2Mat22. mul(Mat22 R, Vec2 v)Vec2Mat22. mul(Vec2 v)Multiply a vector by this matrix.static Vec2Transform. mul(Transform T, Vec2 v)static Vec2Mat33. mul22(Mat33 A, Vec2 v)static voidMat33. mul22ToOut(Mat33 A, Vec2 v, Vec2 out)static voidMat33. mul22ToOutUnsafe(Mat33 A, Vec2 v, Vec2 out)static voidMat22. mulToOut(Mat22 R, Vec2 v, Vec2 out)voidMat22. mulToOut(Vec2 v, Vec2 out)static voidRot. mulToOut(Rot q, Vec2 v, Vec2 out)static voidTransform. mulToOut(Transform T, Vec2 v, Vec2 out)static voidMat22. mulToOutUnsafe(Mat22 R, Vec2 v, Vec2 out)voidMat22. mulToOutUnsafe(Vec2 v, Vec2 out)static voidRot. mulToOutUnsafe(Rot q, Vec2 v, Vec2 out)static voidTransform. mulToOutUnsafe(Transform T, Vec2 v, Vec2 out)static Vec2Mat22. mulTrans(Mat22 R, Vec2 v)Vec2Mat22. mulTrans(Vec2 v)Multiply a vector by the transpose of this matrix.static voidRot. mulTrans(Rot q, Vec2 v, Vec2 out)static Vec2Transform. mulTrans(Transform T, Vec2 v)static voidMat22. mulTransToOut(Mat22 R, Vec2 v, Vec2 out)voidMat22. mulTransToOut(Vec2 v, Vec2 out)static voidTransform. mulTransToOut(Transform T, Vec2 v, Vec2 out)static voidMat22. mulTransToOutUnsafe(Mat22 R, Vec2 v, Vec2 out)static voidTransform. mulTransToOutUnsafe(Transform T, Vec2 v, Vec2 out)static voidRot. mulTransUnsafe(Rot q, Vec2 v, Vec2 out)static voidVec2. negateToOut(Vec2 a, Vec2 out)voidMat22. set(Vec2 c1, Vec2 c2)Set by column vectors.voidTransform. set(Vec2 p, float angle)Set this based on the position and angle.Vec2Vec2. set(Vec2 v)Set this vector to another vector.voidIViewportTransform. setCenter(Vec2 argPos)sets the center of the viewport.voidOBBViewportTransform. setCenter(Vec2 argPos)voidIViewportTransform. setExtents(Vec2 argExtents)This sets the half-width and half-height.voidOBBViewportTransform. setExtents(Vec2 argExtents)voidVec2. skew(Vec2 out)Get the skew vector such that dot(skew_vec, other) == cross(vec, other)Vec2Mat22. solve(Vec2 b)Solve A * x = b where A = this matrix.Vec2Mat33. solve22(Vec2 b)Solve A * x = b, where b is a column vector.voidMat33. solve22ToOut(Vec2 b, Vec2 out)Solve A * x = b, where b is a column vector.voidMat22. solveToOut(Vec2 b, Vec2 out)Vec2Vec2. sub(Vec2 v)Return the difference of this vector and another; does not alter either one.Vec2Vec2. 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 Vec2World. axisprivate Vec2World. cAprivate Vec2World. cBprivate Vec2World. centerprivate Vec2World. circCenterMovedprivate Vec2Fixture. displacementVec2BodyDef. linearVelocityThe linear velocity of the body in world co-ordinates.private Vec2World. liquidOffsetVec2Body. m_forceprivate Vec2World. m_gravityVec2Body. m_linearVelocityprivate Vec2WorldRayCastWrapper. pointVec2BodyDef. positionThe world position of the body.private Vec2WorldRayCastWrapper. tempprivate Vec2World. v1private Vec2World. v2Methods in org.jbox2d.dynamics that return Vec2 Modifier and Type Method Description Vec2World. getGravity()Get the global gravity vector.Vec2Body. getLinearVelocity()Get the linear velocity of the center of mass.Vec2Body. getLinearVelocityFromLocalPoint(Vec2 localPoint)Get the world velocity of a local point.Vec2Body. getLinearVelocityFromWorldPoint(Vec2 worldPoint)Get the world linear velocity of a world point attached to this body.Vec2Body. getLocalCenter()Get the local position of the center of mass.Vec2Body. getLocalPoint(Vec2 worldPoint)Gets a local point relative to the body's origin given a world point.Vec2Body. getLocalVector(Vec2 worldVector)Gets a local vector given a world vector.Vec2Body. getPosition()Get the world body origin position.Vec2Body. getWorldCenter()Get the world position of the center of mass.Vec2Body. getWorldPoint(Vec2 localPoint)Get the world coordinates of a point given the local coordinates.Vec2Body. 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 voidBody. applyForce(Vec2 force, Vec2 point)Apply a force at a world point.voidBody. applyForceToCenter(Vec2 force)Apply a force to the center of mass.voidBody. applyLinearImpulse(Vec2 impulse, Vec2 point)Apply an impulse at a point.Vec2Body. getLinearVelocityFromLocalPoint(Vec2 localPoint)Get the world velocity of a local point.voidBody. getLinearVelocityFromLocalPointToOut(Vec2 localPoint, Vec2 out)Vec2Body. getLinearVelocityFromWorldPoint(Vec2 worldPoint)Get the world linear velocity of a world point attached to this body.voidBody. getLinearVelocityFromWorldPointToOut(Vec2 worldPoint, Vec2 out)Vec2Body. getLocalPoint(Vec2 worldPoint)Gets a local point relative to the body's origin given a world point.voidBody. getLocalPointToOut(Vec2 worldPoint, Vec2 out)Vec2Body. getLocalVector(Vec2 worldVector)Gets a local vector given a world vector.voidBody. getLocalVectorToOut(Vec2 worldVector, Vec2 out)voidBody. getLocalVectorToOutUnsafe(Vec2 worldVector, Vec2 out)Vec2Body. getWorldPoint(Vec2 localPoint)Get the world coordinates of a point given the local coordinates.voidBody. getWorldPointToOut(Vec2 localPoint, Vec2 out)Vec2Body. getWorldVector(Vec2 localVector)Get the world coordinates of a vector given the local coordinates.voidBody. getWorldVectorToOut(Vec2 localVector, Vec2 out)voidBody. getWorldVectorToOutUnsafe(Vec2 localVector, Vec2 out)voidWorld. raycast(RayCastCallback callback, Vec2 point1, Vec2 point2)Ray-cast the world for all fixtures in the path of the ray.voidWorld. setGravity(Vec2 gravity)Change the global gravity vector.voidBody. setLinearVelocity(Vec2 v)Set the linear velocity of the center of mass.voidBody. setTransform(Vec2 position, float angle)Set the position of the body's origin and rotation.voidIsland. solve(Profile profile, TimeStep step, Vec2 gravity, boolean allowSleep)booleanFixture. 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 Vec2ContactSolver. aprivate Vec2ContactSolver. bVec2Position. cprivate Vec2ContactSolver. dprivate Vec2ContactSolver. dv1private Vec2ContactSolver. dv2(package private) Vec2ContactPositionConstraint. localCenterA(package private) Vec2ContactPositionConstraint. localCenterB(package private) Vec2ContactPositionConstraint. localNormal(package private) Vec2ContactPositionConstraint. localPoint(package private) Vec2[]ContactPositionConstraint. localPointsVec2ContactVelocityConstraint. normalVec2PositionSolverManifold. normalprivate Vec2ContactSolver. Pprivate Vec2ContactSolver. P1private Vec2ContactSolver. P2Vec2PositionSolverManifold. pointprivate Vec2ContactSolver. rAVec2ContactVelocityConstraint.VelocityConstraintPoint. rAprivate Vec2ContactSolver. rBVec2ContactVelocityConstraint.VelocityConstraintPoint. rBprivate Vec2ContactSolver. tangentprivate Vec2ContactSolver. tempprivate Vec2ContactSolver. temp1private Vec2ContactSolver. temp2Vec2Velocity. vprivate Vec2ContactSolver. x -
Uses of Vec2 in org.jbox2d.dynamics.joints
Fields in org.jbox2d.dynamics.joints declared as Vec2 Modifier and Type Field Description private Vec2WheelJoint. dVec2PulleyJointDef. groundAnchorAThe first ground anchor in world coordinates.Vec2PulleyJointDef. groundAnchorBThe second ground anchor in world coordinates.Vec2Jacobian. linearAVec2DistanceJointDef. localAnchorAThe local anchor point relative to body1's origin.Vec2FrictionJointDef. localAnchorAThe local anchor point relative to bodyA's origin.Vec2PrismaticJointDef. localAnchorAThe local anchor point relative to body1's origin.Vec2PulleyJointDef. localAnchorAThe local anchor point relative to bodyA's origin.Vec2RevoluteJointDef. localAnchorAThe local anchor point relative to body1's origin.Vec2RopeJointDef. localAnchorAThe local anchor point relative to bodyA's origin.Vec2WeldJointDef. localAnchorAThe local anchor point relative to body1's origin.Vec2WheelJointDef. localAnchorAThe local anchor point relative to body1's origin.Vec2DistanceJointDef. localAnchorBThe local anchor point relative to body2's origin.Vec2FrictionJointDef. localAnchorBThe local anchor point relative to bodyB's origin.Vec2PrismaticJointDef. localAnchorBThe local anchor point relative to body2's origin.Vec2PulleyJointDef. localAnchorBThe local anchor point relative to bodyB's origin.Vec2RevoluteJointDef. localAnchorBThe local anchor point relative to body2's origin.Vec2RopeJointDef. localAnchorBThe local anchor point relative to bodyB's origin.Vec2WeldJointDef. localAnchorBThe local anchor point relative to body2's origin.Vec2WheelJointDef. localAnchorBThe local anchor point relative to body2's origin.Vec2PrismaticJointDef. localAxisAThe local translation axis in body1.Vec2WheelJointDef. localAxisAThe local translation axis in body1.private Vec2WheelJoint. m_axprivate Vec2PrismaticJoint. m_axisprivate Vec2WheelJoint. m_ayprivate Vec2MouseJoint. m_Cprivate Vec2PulleyJoint. m_groundAnchorAprivate Vec2PulleyJoint. m_groundAnchorBprivate Vec2MouseJoint. m_impulseprivate Vec2GearJoint. m_JvACprivate Vec2GearJoint. m_JvBDprivate Vec2GearJoint. m_lcAprivate Vec2GearJoint. m_lcBprivate Vec2GearJoint. m_lcCprivate Vec2GearJoint. m_lcDprivate Vec2FrictionJoint. m_linearImpulseprivate Vec2DistanceJoint. m_localAnchorAprivate Vec2FrictionJoint. m_localAnchorAprivate Vec2GearJoint. m_localAnchorAprotected Vec2PrismaticJoint. m_localAnchorAprivate Vec2PulleyJoint. m_localAnchorAprotected Vec2RevoluteJoint. m_localAnchorAprivate Vec2RopeJoint. m_localAnchorAprivate Vec2WeldJoint. m_localAnchorAprivate Vec2WheelJoint. m_localAnchorAprivate Vec2DistanceJoint. m_localAnchorBprivate Vec2FrictionJoint. m_localAnchorBprivate Vec2GearJoint. m_localAnchorBprivate Vec2MouseJoint. m_localAnchorBprotected Vec2PrismaticJoint. m_localAnchorBprivate Vec2PulleyJoint. m_localAnchorBprotected Vec2RevoluteJoint. m_localAnchorBprivate Vec2RopeJoint. m_localAnchorBprivate Vec2WeldJoint. m_localAnchorBprivate Vec2WheelJoint. m_localAnchorBprivate Vec2GearJoint. m_localAnchorCprivate Vec2GearJoint. m_localAnchorDprivate Vec2GearJoint. m_localAxisCprivate Vec2GearJoint. m_localAxisDprivate Vec2DistanceJoint. m_localCenterAprivate Vec2FrictionJoint. m_localCenterAprivate Vec2PrismaticJoint. m_localCenterAprivate Vec2PulleyJoint. m_localCenterAprivate Vec2RevoluteJoint. m_localCenterAprivate Vec2RopeJoint. m_localCenterAprivate Vec2WeldJoint. m_localCenterAprivate Vec2WheelJoint. m_localCenterAprivate Vec2DistanceJoint. m_localCenterBprivate Vec2FrictionJoint. m_localCenterBprivate Vec2MouseJoint. m_localCenterBprivate Vec2PrismaticJoint. m_localCenterBprivate Vec2PulleyJoint. m_localCenterBprivate Vec2RevoluteJoint. m_localCenterBprivate Vec2RopeJoint. m_localCenterBprivate Vec2WeldJoint. m_localCenterBprivate Vec2WheelJoint. m_localCenterBprotected Vec2PrismaticJoint. m_localXAxisAprivate Vec2WheelJoint. m_localXAxisAprotected Vec2PrismaticJoint. m_localYAxisAprivate Vec2WheelJoint. m_localYAxisAprivate Vec2PrismaticJoint. m_perpprivate Vec2DistanceJoint. m_rAprivate Vec2FrictionJoint. m_rAprivate Vec2PulleyJoint. m_rAprivate Vec2RevoluteJoint. m_rAprivate Vec2RopeJoint. m_rAprivate Vec2WeldJoint. m_rAprivate Vec2DistanceJoint. m_rBprivate Vec2FrictionJoint. m_rBprivate Vec2MouseJoint. m_rBprivate Vec2PulleyJoint. m_rBprivate Vec2RevoluteJoint. m_rBprivate Vec2RopeJoint. m_rBprivate Vec2WeldJoint. m_rBprivate Vec2MouseJoint. m_targetAprivate Vec2DistanceJoint. m_uprivate Vec2RopeJoint. m_uprivate Vec2PulleyJoint. m_uAprivate Vec2PulleyJoint. m_uBprivate Vec2[]ConstantVolumeJoint. normalsprivate Vec2WheelJoint. rAprivate Vec2WheelJoint. rBVec2MouseJointDef. targetThe initial world target point.Methods in org.jbox2d.dynamics.joints that return Vec2 Modifier and Type Method Description Vec2PulleyJoint. getGroundAnchorA()Vec2PulleyJoint. getGroundAnchorB()Vec2DistanceJoint. getLocalAnchorA()Vec2FrictionJoint. getLocalAnchorA()Vec2PrismaticJoint. getLocalAnchorA()Vec2PulleyJoint. getLocalAnchorA()Vec2RevoluteJoint. getLocalAnchorA()Vec2RopeJoint. getLocalAnchorA()Vec2WeldJoint. getLocalAnchorA()Vec2WheelJoint. getLocalAnchorA()Vec2DistanceJoint. getLocalAnchorB()Vec2FrictionJoint. getLocalAnchorB()Vec2PrismaticJoint. getLocalAnchorB()Vec2PulleyJoint. getLocalAnchorB()Vec2RevoluteJoint. getLocalAnchorB()Vec2RopeJoint. getLocalAnchorB()Vec2WeldJoint. getLocalAnchorB()Vec2WheelJoint. getLocalAnchorB()Vec2PrismaticJoint. getLocalAxisA()Vec2WheelJoint. getLocalAxisA()For serializationVec2MouseJoint. getTarget()Methods in org.jbox2d.dynamics.joints with parameters of type Vec2 Modifier and Type Method Description voidConstantVolumeJoint. getAnchorA(Vec2 argOut)No-opvoidDistanceJoint. getAnchorA(Vec2 argOut)voidFrictionJoint. getAnchorA(Vec2 argOut)voidGearJoint. getAnchorA(Vec2 argOut)abstract voidJoint. getAnchorA(Vec2 out)get the anchor point on bodyA in world coordinates.voidMouseJoint. getAnchorA(Vec2 argOut)voidPrismaticJoint. getAnchorA(Vec2 argOut)voidPulleyJoint. getAnchorA(Vec2 argOut)voidRevoluteJoint. getAnchorA(Vec2 argOut)voidRopeJoint. getAnchorA(Vec2 argOut)voidWeldJoint. getAnchorA(Vec2 argOut)voidWheelJoint. getAnchorA(Vec2 argOut)voidConstantVolumeJoint. getAnchorB(Vec2 argOut)No-opvoidDistanceJoint. getAnchorB(Vec2 argOut)voidFrictionJoint. getAnchorB(Vec2 argOut)voidGearJoint. getAnchorB(Vec2 argOut)abstract voidJoint. getAnchorB(Vec2 out)get the anchor point on bodyB in world coordinates.voidMouseJoint. getAnchorB(Vec2 argOut)voidPrismaticJoint. getAnchorB(Vec2 argOut)voidPulleyJoint. getAnchorB(Vec2 argOut)voidRevoluteJoint. getAnchorB(Vec2 argOut)voidRopeJoint. getAnchorB(Vec2 argOut)voidWeldJoint. getAnchorB(Vec2 argOut)voidWheelJoint. getAnchorB(Vec2 argOut)voidConstantVolumeJoint. getReactionForce(float inv_dt, Vec2 argOut)No-opvoidDistanceJoint. getReactionForce(float inv_dt, Vec2 argOut)Get the reaction force given the inverse time step.voidFrictionJoint. getReactionForce(float inv_dt, Vec2 argOut)voidGearJoint. getReactionForce(float inv_dt, Vec2 argOut)abstract voidJoint. getReactionForce(float inv_dt, Vec2 out)get the reaction force on body2 at the joint anchor in Newtons.voidMouseJoint. getReactionForce(float invDt, Vec2 argOut)voidPrismaticJoint. getReactionForce(float inv_dt, Vec2 argOut)voidPulleyJoint. getReactionForce(float inv_dt, Vec2 argOut)voidRevoluteJoint. getReactionForce(float inv_dt, Vec2 argOut)voidRopeJoint. getReactionForce(float inv_dt, Vec2 argOut)voidWeldJoint. getReactionForce(float inv_dt, Vec2 argOut)voidWheelJoint. getReactionForce(float inv_dt, Vec2 argOut)voidDistanceJointDef. initialize(Body b1, Body b2, Vec2 anchor1, Vec2 anchor2)Initialize the bodies, anchors, and length using the world anchors.voidFrictionJointDef. initialize(Body bA, Body bB, Vec2 anchor)Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.voidPrismaticJointDef. initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis)Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.voidPulleyJointDef. 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.voidRevoluteJointDef. initialize(Body b1, Body b2, Vec2 anchor)Initialize the bodies, anchors, and reference angle using the world anchor.voidWeldJointDef. initialize(Body bA, Body bB, Vec2 anchor)Initialize the bodies, anchors, and reference angle using a world anchor point.voidWheelJointDef. initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis)voidMouseJoint. 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)Vec2IWorldPool. 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. vecsMethods in org.jbox2d.pooling.normal that return Vec2 Modifier and Type Method Description Vec2[]DefaultWorldPool. getVec2Array(int argLength)Vec2DefaultWorldPool. 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 Vec2PbDeserializer. pbToVec(Box2D.PbVec2 argVec)Methods in org.jbox2d.serialization.pb with parameters of type Vec2 Modifier and Type Method Description private Box2D.PbVec2PbSerializer. 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 Vec2TestbedTest. bombSpawnPointprivate Vec2TestbedTest. cachedCameraPosprivate Vec2TestbedModel. mouseprivate Vec2TestbedTest. mouseWorldVec2ContactPoint. normalVec2QueueItem. pprivate Vec2TestbedTest. pprivate Vec2TestbedTest. p1private Vec2TestbedTest. p2Vec2TestQueryCallback. pointVec2ContactPoint. positionprivate Vec2TestbedTest. tangentprivate Vec2TestbedTest. vprivate Vec2TestbedTest. velMethods in org.jbox2d.testbed.framework that return Vec2 Modifier and Type Method Description Vec2TestbedTest. getCachedCameraPos()Vec2TestbedTest. getDefaultCameraPos()Override for a different default camera posVec2TestbedModel. getMouse()Vec2TestbedTest. getWorldMouse()Gets the world position of the mouseMethods in org.jbox2d.testbed.framework with parameters of type Vec2 Modifier and Type Method Description voidTestbedTest. completeBombSpawn(Vec2 p)voidTestbedTest. launchBomb(Vec2 position, Vec2 velocity)voidTestbedTest. mouseDown(Vec2 p)Called for mouse-downvoidTestbedTest. mouseMove(Vec2 p)Called when mouse is movedvoidTestbedTest. mouseUp(Vec2 p)Called for mouse-upvoidTestbedTest. queueMouseDown(Vec2 p)voidTestbedTest. queueMouseMove(Vec2 p)voidTestbedTest. queueMouseUp(Vec2 p)voidTestbedTest. queueShiftMouseDown(Vec2 p)voidTestbedTest. setCachedCameraPos(Vec2 argPos)voidTestbedTest. setCamera(Vec2 argPos)voidTestbedTest. setCamera(Vec2 argPos, float scale)Sets the current testbed cameravoidTestbedModel. setMouse(Vec2 argMouse)voidTestbedTest. shiftMouseDown(Vec2 p)Called when shift-mouse down occursvoidTestbedTest. 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 Vec2TestPanelJ2D. dragginMouseprivate Vec2DebugDrawJ2D. saxisprivate Vec2DebugDrawJ2D. sp1private Vec2DebugDrawJ2D. sp2private Vec2DebugDrawJ2D. tempprivate Vec2DebugDrawJ2D. temp2Methods in org.jbox2d.testbed.framework.j2d with parameters of type Vec2 Modifier and Type Method Description voidDebugDrawJ2D. drawCircle(Vec2 center, float radius, Color3f color)voidDebugDrawJ2D. drawPoint(Vec2 argPoint, float argRadiusOnScreen, Color3f argColor)voidDebugDrawJ2D. drawSegment(Vec2 p1, Vec2 p2, Color3f color)voidDebugDrawJ2D. drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color)voidDebugDrawJ2D. drawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color)private voidDebugDrawJ2D. 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 Vec2PoolingPerf. mv(package private) Vec2[]PoolingPerf.CirclePool. pool(package private) Vec2[]PoolingPerf.CustStack. poolMethods in org.jbox2d.testbed.perf that return Vec2 Modifier and Type Method Description Vec2PoolingPerf.CirclePool. get()Vec2PoolingPerf.CustStack. get()protected Vec2PoolingPerf.TLVec2. initialValue()Methods in org.jbox2d.testbed.perf with parameters of type Vec2 Modifier and Type Method Description floatPoolingPerf. op(Vec2 argVec)floatStackTest. 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) Vec2RayCastTest. d(package private) Vec2EdgeShapesCallback. m_normal(package private) Vec2RayCastAnyCallback. m_normal(package private) Vec2RayCastClosestCallback. m_normal(package private) Vec2[]RayCastMultipleCallback. m_normals(package private) Vec2TheoJansen. m_offset(package private) Vec2EdgeShapesCallback. m_point(package private) Vec2RayCastAnyCallback. m_point(package private) Vec2RayCastClosestCallback. m_pointprivate Vec2[]ConvexHull. m_points(package private) Vec2[]RayCastMultipleCallback. m_points(package private) Vec2DistanceTest. m_positionB(package private) Vec2Breakable. m_velocity(package private) Vec2RayCastTest. point1(package private) Vec2RayCastTest. point2(package private) Vec2RayCastTest. pooledHead(package private) Vec2[]DistanceTest. vMethods in org.jbox2d.testbed.tests that return Vec2 Modifier and Type Method Description Vec2CircleStress. getDefaultCameraPos()Vec2DominoTower. getDefaultCameraPos()Methods in org.jbox2d.testbed.tests with parameters of type Vec2 Modifier and Type Method Description (package private) voidTheoJansen. createLeg(float s, Vec2 wheelAnchor)floatEdgeShapesCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)floatRayCastAnyCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)floatRayCastClosestCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)floatRayCastMultipleCallback. reportFixture(Fixture fixture, Vec2 point, Vec2 normal, float fraction)
-