Uses of Class
org.jbox2d.common.Vec2
Packages that use Vec2
Package
Description
The Collision module contains shapes and functions that operate on them.
The Common module contains settings, memory management, and vector math.
The Dynamics module is the most complex part of jbox2d and is the part you
likely interact with the most.
Joints are used to constraint two bodies together in various fashions.
-
Uses of Vec2 in org.jbox2d.callbacks
Methods in org.jbox2d.callbacks that return Vec2Modifier and TypeMethodDescriptionDebugDraw.getScreenToWorld(float screenX, float screenY) takes the screen coordinates and returns the world coordinates.DebugDraw.getScreenToWorld(Vec2 argScreen) takes the screen coordinates (argScreen) and returns the world coordinatesDebugDraw.getWorldToScreen(float worldX, float worldY) Takes the world coordinates and returns the screen coordinates.DebugDraw.getWorldToScreen(Vec2 argWorld) takes the world coordinate (argWorld) and returns the screen coordinates.Methods in org.jbox2d.callbacks with parameters of type Vec2Modifier and TypeMethodDescriptionabstract voidDebugDraw.drawCircle(Vec2 center, float radius, Color3f color) Draw a circle.voidDebugDraw.drawCircle(Vec2 center, float radius, Vec2 axis, Color3f color) Draws a circle with an axisabstract voidDebugDraw.drawParticles(Vec2[] centers, float radius, ParticleColor[] colors, int count) Draw a particle arrayabstract voidDebugDraw.drawParticlesWireframe(Vec2[] centers, float radius, ParticleColor[] colors, int count) Draw a particle arrayabstract voidvoidDebugDraw.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, String s, Color3f color) DebugDraw.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) DebugDraw.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.floatParticleRaycastCallback.reportParticle(int index, Vec2 point, Vec2 normal, float fraction) Called for each particle found in the query. -
Uses of Vec2 in org.jbox2d.collision
Fields in org.jbox2d.collision declared as Vec2Modifier and TypeFieldDescriptionfinal Vec2[]Distance.DistanceProxy.bufferfinal Vec2Manifold.localNormalnot use for Type::e_pointsfinal Vec2Manifold.localPointusage depends on manifold typefinal Vec2ManifoldPoint.localPointusage depends on manifold typefinal Vec2AABB.lowerBoundThe bottom left vertex of the bounding box.final Vec2RayCastOutput.normalfinal Vec2WorldManifold.normalThe world vector pointing from A to B.final Vec2RayCastInput.p1final Vec2RayCastInput.p2final Vec2DistanceOutput.pointAClosest point on shapeAfinal Vec2DistanceOutput.pointBClosest point on shapeBfinal Vec2[]WorldManifold.pointsThe world contact point (point of intersection).final Vec2AABB.upperBoundThe top right vertex of the bounding box.final Vec2Collision.ClipVertex.vfinal Vec2[]Distance.DistanceProxy.verticesMethods in org.jbox2d.collision that return Vec2Modifier and TypeMethodDescriptionfinal Vec2AABB.getCenter()Get the center of the AABB.final Vec2AABB.getExtents()Get the extents of the AABB (half-widths).final Vec2Distance.DistanceProxy.getSupportVertex(Vec2 d) Get the supporting vertex in the given direction.final Vec2Distance.DistanceProxy.getVertex(int index) Get a vertex by index.Methods in org.jbox2d.collision with parameters of type Vec2Modifier and TypeMethodDescriptionstatic intCollision.clipSegmentToLine(Collision.ClipVertex[] vOut, Collision.ClipVertex[] vIn, Vec2 normal, float offset, int vertexIndexA) Clipping for contact manifolds.final voidAABB.getCenterToOut(Vec2 out) final voidAABB.getExtentsToOut(Vec2 out) final intDistance.DistanceProxy.getSupport(Vec2 d) Get the supporting vertex index in the given direction.final Vec2Distance.DistanceProxy.getSupportVertex(Vec2 d) Get the supporting vertex in the given direction.final voidAABB.getVertices(Vec2[] argRay) Constructors in org.jbox2d.collision with parameters of type Vec2 -
Uses of Vec2 in org.jbox2d.collision.broadphase
Methods in org.jbox2d.collision.broadphase with parameters of type Vec2Modifier and TypeMethodDescriptionvoidCall MoveProxy as many times as you like, then when you are done call UpdatePairs to finalize the proxy pairs (for your time step).booleanMove a proxy with a swepted AABB.final voidfinal booleanfinal boolean -
Uses of Vec2 in org.jbox2d.collision.shapes
Fields in org.jbox2d.collision.shapes declared as Vec2Modifier and TypeFieldDescriptionfinal Vec2MassData.centerThe position of the shape's centroid relative to the shape's origin.final Vec2PolygonShape.centroidLocal position of the shape centroid in parent body frame.final Vec2ChainShape.nextVertexfinal Vec2[]PolygonShape.normalsThe normals of the shape.final Vec2CircleShape.pfinal Vec2ChainShape.prevVertexfinal Vec2EdgeShape.vertex0optional adjacent vertex 1.final Vec2EdgeShape.vertex1edge vertex 1final Vec2EdgeShape.vertex2edge vertex 2final Vec2EdgeShape.vertex3optional adjacent vertex 2.Vec2[]ChainShape.verticesfinal Vec2[]PolygonShape.verticesThe vertices of the shape.Methods in org.jbox2d.collision.shapes that return Vec2Modifier and TypeMethodDescriptionGet the centroid and apply the supplied transform.PolygonShape.centroidToOut(Transform xf, Vec2 out) Get the centroid and apply the supplied transform.Vec2[]PolygonShape.getNormals()Get the edge normal vectors.final Vec2CircleShape.getSupportVertex(Vec2 d) Get the supporting vertex in the given direction.final Vec2CircleShape.getVertex(int index) Get a vertex by index.final 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 Vec2Modifier and TypeMethodDescriptionPolygonShape.centroidToOut(Transform xf, Vec2 out) Get the centroid and apply the supplied transform.final voidPolygonShape.computeCentroidToOut(Vec2[] vs, int count, Vec2 out) floatChainShape.computeDistanceToOut(Transform xf, Vec2 p, int childIndex, Vec2 normalOut) floatCircleShape.computeDistanceToOut(Transform xf, Vec2 p, int childIndex, Vec2 normalOut) floatEdgeShape.computeDistanceToOut(Transform xf, Vec2 p, int childIndex, Vec2 normalOut) floatPolygonShape.computeDistanceToOut(Transform xf, Vec2 p, int childIndex, Vec2 normalOut) abstract floatShape.computeDistanceToOut(Transform xf, Vec2 p, int childIndex, Vec2 normalOut) Compute the distance from the current shape to the specified point.voidChainShape.createChain(Vec2[] vertices, int count) Create a chain with isolated end vertices.voidChainShape.createLoop(Vec2[] vertices, int count) Create a loop.final intCircleShape.getSupport(Vec2 d) Get the supporting vertex index in the given direction.final Vec2CircleShape.getSupportVertex(Vec2 d) Get the supporting vertex in the given direction.voidfinal voidCreate a convex hull from the given array of points.final voidCreate a convex hull from the given array of points.final voidBuild 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.booleanfinal booleanbooleanfinal booleanabstract booleanTest a point for containment in this shape. -
Uses of Vec2 in org.jbox2d.common
Fields in org.jbox2d.common declared as Vec2Modifier and TypeFieldDescriptionfinal Vec2Sweep.cCenter world positionsfinal Vec2Sweep.c0Center world positionsfinal Vec2OBBViewportTransform.OBB.centerfinal Vec2Mat22.exfinal Vec2OBBViewportTransform.OBB.extentsfinal Vec2Mat22.eyfinal Vec2Sweep.localCenterLocal center of mass positionfinal Vec2RaycastResult.normalfinal Vec2Transform.pThe translation caused by the transformMethods in org.jbox2d.common that return Vec2Modifier and TypeMethodDescriptionfinal Vec2Vec2.abs()Return a new vector that has positive components.static Vec2final Vec2Return the sum of this vector and another; does not alter either one.final Vec2Vec2.addLocal(float x, float y) Adds values to this vector and returns result - alters this vector.final Vec2Add another vector to this one and returns result - alters this vector.static Vec2final Vec2Vec2.clone()Return a copy of this vector.static Vec2static Vec2IViewportTransform.getCenter()center of the viewport.OBBViewportTransform.getCenter()IViewportTransform.getExtents()This is the half-width and half-height.OBBViewportTransform.getExtents()static Vec2static Vec2static Vec2final Vec2Multiply a vector by this matrix.static Vec2final Vec2Vec2.mul(float a) Return this vector multiplied by a scalar; does not alter this vector.static Vec2final Vec2Vec2.mulLocal(float a) Multiply this vector by a number and return result - alters this vector.static Vec2final Vec2Multiply a vector by the transpose of this matrix.static Vec2final Vec2Vec2.negate()Return the negation of this vector; does not alter this vector.final Vec2Vec2.negateLocal()Flip the vector and return it - alters this vector.final Vec2Vec2.set(float x, float y) Set the vector component-wise.final Vec2Set this vector to another vector.final Vec2Vec2.skew()Get the skew vector such that dot(skew_vec, other) == cross(vec, other)final Vec2Solve A * x = b where A = this matrix.final Vec2Solve A * x = b, where b is a column vector.final Vec2Return the difference of this vector and another; does not alter either one.final Vec2Subtract another vector from this one and return result - alters this vector.Methods in org.jbox2d.common with parameters of type Vec2Modifier and TypeMethodDescriptionstatic Vec2static voidfinal Vec2Return the sum of this vector and another; does not alter either one.final Vec2Add another vector to this one and returns result - alters this vector.static Vec2static voidMathUtils.clampToOut(Vec2 a, Vec2 low, Vec2 high, Vec2 dest) static Vec2static Vec2static floatstatic 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 floatstatic floatMathUtils.distanceSquared(Vec2 v1, Vec2 v2) static floatvoidIViewportTransform.getScreenToWorld(Vec2 screen, Vec2 world) takes the screen coordinates (screen) and puts the corresponding world coordinates in world.voidOBBViewportTransform.getScreenToWorld(Vec2 screen, Vec2 world) voidIViewportTransform.getScreenVectorToWorld(Vec2 screen, Vec2 world) Transforms the given directional screen vector back to the world direction.voidOBBViewportTransform.getScreenVectorToWorld(Vec2 screen, Vec2 world) voidIViewportTransform.getWorldToScreen(Vec2 world, Vec2 screen) takes the world coordinate (world) puts the corresponding screen coordinate in screen.voidOBBViewportTransform.getWorldToScreen(Vec2 world, Vec2 screen) voidIViewportTransform.getWorldVectorToScreen(Vec2 world, Vec2 screen) Transforms the given directional vector by the viewport transform (not positional)voidOBBViewportTransform.getWorldVectorToScreen(Vec2 world, Vec2 screen) voidvoidstatic Vec2static voidstatic Vec2static voidstatic Vec2final Vec2Multiply a vector by this matrix.static Vec2static Vec2static voidMat33.mul22ToOut(Mat33 A, Vec2 v, Vec2 out) static voidMat33.mul22ToOutUnsafe(Mat33 A, Vec2 v, Vec2 out) static voidfinal voidstatic voidstatic voidstatic voidMat22.mulToOutUnsafe(Mat22 R, Vec2 v, Vec2 out) final 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 Vec2final Vec2Multiply a vector by the transpose of this matrix.static voidstatic Vec2static voidMat22.mulTransToOut(Mat22 R, Vec2 v, Vec2 out) final 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) final voidSet by column vectors.final voidSet this based on the position and angle.final Vec2Set this vector to another vector.voidsets the center of the viewport.voidvoidIViewportTransform.setExtents(Vec2 extents) This sets the half-width and half-height.voidOBBViewportTransform.setExtents(Vec2 argExtents) final voidGet the skew vector such that dot(skew_vec, other) == cross(vec, other)final Vec2Solve A * x = b where A = this matrix.final Vec2Solve A * x = b, where b is a column vector.final voidMat33.solve22ToOut(Vec2 b, Vec2 out) Solve A * x = b, where b is a column vector.final voidMat22.solveToOut(Vec2 b, Vec2 out) final Vec2Return the difference of this vector and another; does not alter either one.final Vec2Subtract another vector from this one and return result - alters this vector.Constructors in org.jbox2d.common with parameters of type Vec2 -
Uses of Vec2 in org.jbox2d.dynamics
Fields in org.jbox2d.dynamics declared as Vec2Modifier and TypeFieldDescriptionfinal Vec2Body.forcefinal Vec2Body.linearVelocityBodyDef.linearVelocityThe linear velocity of the body in world co-ordinates.BodyDef.positionThe world position of the body.Methods in org.jbox2d.dynamics that return Vec2Modifier and TypeMethodDescriptionWorld.getGravity()Get the global gravity vector.final Vec2Body.getLinearVelocity()Get the linear velocity of the center of mass.BodyDef.getLinearVelocity()The linear velocity of the body in world co-ordinates.final Vec2Body.getLinearVelocityFromLocalPoint(Vec2 localPoint) Get the world velocity of a local point.final Vec2Body.getLinearVelocityFromWorldPoint(Vec2 worldPoint) Get the world linear velocity of a world point attached to this body.final Vec2Body.getLocalCenter()Get the local position of the center of mass.final Vec2Body.getLocalPoint(Vec2 worldPoint) Gets a local point relative to the body's origin given a world point.final Vec2Body.getLocalVector(Vec2 worldVector) Gets a local vector given a world vector.Vec2[]World.getParticlePositionBuffer()Vec2[]World.getParticleVelocityBuffer()final Vec2Body.getPosition()Get the world body origin position.BodyDef.getPosition()The world position of the body.final Vec2Body.getWorldCenter()Get the world position of the center of mass.final Vec2Body.getWorldPoint(Vec2 localPoint) Get the world coordinates of a point given the local coordinates.final Vec2Body.getWorldVector(Vec2 localVector) Get the world coordinates of a vector given the local coordinates.Methods in org.jbox2d.dynamics with parameters of type Vec2Modifier and TypeMethodDescriptionfinal voidBody.applyForce(Vec2 force, Vec2 point) Apply a force at a world point.final voidBody.applyForceToCenter(Vec2 force) Apply a force to the center of mass.final voidBody.applyLinearImpulse(Vec2 impulse, Vec2 point, boolean wake) Apply an impulse at a point.floatFixture.computeDistance(Vec2 p, int childIndex, Vec2 normalOut) Compute the distance from this fixture.final Vec2Body.getLinearVelocityFromLocalPoint(Vec2 localPoint) Get the world velocity of a local point.final voidBody.getLinearVelocityFromLocalPointToOut(Vec2 localPoint, Vec2 out) final Vec2Body.getLinearVelocityFromWorldPoint(Vec2 worldPoint) Get the world linear velocity of a world point attached to this body.final voidBody.getLinearVelocityFromWorldPointToOut(Vec2 worldPoint, Vec2 out) final Vec2Body.getLocalPoint(Vec2 worldPoint) Gets a local point relative to the body's origin given a world point.final voidBody.getLocalPointToOut(Vec2 worldPoint, Vec2 out) final Vec2Body.getLocalVector(Vec2 worldVector) Gets a local vector given a world vector.final voidBody.getLocalVectorToOut(Vec2 worldVector, Vec2 out) final voidBody.getLocalVectorToOutUnsafe(Vec2 worldVector, Vec2 out) final Vec2Body.getWorldPoint(Vec2 localPoint) Get the world coordinates of a point given the local coordinates.final voidBody.getWorldPointToOut(Vec2 localPoint, Vec2 out) final Vec2Body.getWorldVector(Vec2 localVector) Get the world coordinates of a vector given the local coordinates.final voidBody.getWorldVectorToOut(Vec2 localVector, Vec2 out) final voidBody.getWorldVectorToOutUnsafe(Vec2 localVector, Vec2 out) voidWorld.raycast(ParticleRaycastCallback particleCallback, Vec2 point1, Vec2 point2) Ray-cast the world for all particles in the path of the ray.voidWorld.raycast(RayCastCallback callback, ParticleRaycastCallback particleCallback, Vec2 point1, Vec2 point2) Ray-cast the world for all fixtures and particles in the path of the ray.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.final voidBody.setLinearVelocity(Vec2 v) Set the linear velocity of the center of mass.voidBodyDef.setLinearVelocity(Vec2 linearVelocity) The linear velocity of the body in world co-ordinates.voidWorld.setParticlePositionBuffer(Vec2[] buffer, int capacity) voidWorld.setParticleVelocityBuffer(Vec2[] buffer, int capacity) voidBodyDef.setPosition(Vec2 position) The world position of the body.final voidBody.setTransform(Vec2 position, float angle) Set the position of the body's origin and rotation.voidbooleanTest a point for containment in this fixture.Constructors in org.jbox2d.dynamics with parameters of type Vec2ModifierConstructorDescriptionConstruct a world object.Construct a world object.World(Vec2 gravity, WorldPool pool, BroadPhase broadPhase) Construct a world object.World(Vec2 gravity, WorldPool pool, BroadPhaseStrategy strategy) Construct a world object. -
Uses of Vec2 in org.jbox2d.dynamics.contacts
Fields in org.jbox2d.dynamics.contacts declared as Vec2 -
Uses of Vec2 in org.jbox2d.dynamics.joints
Fields in org.jbox2d.dynamics.joints declared as Vec2Modifier and TypeFieldDescriptionPulleyJointDef.groundAnchorAThe first ground anchor in the world coordinates.PulleyJointDef.groundAnchorBThe second ground anchor in the world coordinates.final Vec2Jacobian.linearAfinal Vec2MotorJointDef.linearOffsetPosition of bodyB minus the position of bodyA, in bodyA's frame, in meters.final Vec2DistanceJointDef.localAnchorAThe local anchor point relative to body1's origin.final Vec2FrictionJointDef.localAnchorAThe local anchor point relative to bodyA's origin.protected final Vec2PrismaticJoint.localAnchorAThe local anchor point relative to body1's origin.final Vec2PrismaticJointDef.localAnchorAThe local anchor point relative to body1's origin.PulleyJointDef.localAnchorAThe local anchor point relative to bodyA's origin.protected final Vec2RevoluteJoint.localAnchorAThe local anchor point relative to body1's origin.RevoluteJointDef.localAnchorAThe local anchor point relative to body1's origin.final Vec2RopeJointDef.localAnchorAThe local anchor point relative to bodyA's origin.final Vec2WeldJointDef.localAnchorAThe local anchor point relative to body1's origin.final Vec2WheelJointDef.localAnchorAThe local anchor point relative to body1's origin.final Vec2DistanceJointDef.localAnchorBThe local anchor point relative to body2's origin.final Vec2FrictionJointDef.localAnchorBThe local anchor point relative to bodyB's origin.protected final Vec2PrismaticJoint.localAnchorBThe local anchor point relative to body2's origin.final Vec2PrismaticJointDef.localAnchorBThe local anchor point relative to body2's origin.PulleyJointDef.localAnchorBThe local anchor point relative to bodyB's origin.protected final Vec2RevoluteJoint.localAnchorBThe local anchor point relative to body2's origin.RevoluteJointDef.localAnchorBThe local anchor point relative to body2's origin.final Vec2RopeJointDef.localAnchorBThe local anchor point relative to bodyB's origin.final Vec2WeldJointDef.localAnchorBThe local anchor point relative to body2's origin.final Vec2WheelJointDef.localAnchorBThe local anchor point relative to body2's origin.final Vec2PrismaticJointDef.localAxisAThe local translation axis in body1.final Vec2WheelJointDef.localAxisAThe local translation axis in body1.protected final Vec2PrismaticJoint.localXAxisAprotected final Vec2PrismaticJoint.localYAxisAfinal Vec2MouseJointDef.targetThe initial world target point.Methods in org.jbox2d.dynamics.joints that return Vec2Modifier and TypeMethodDescriptionPulleyJoint.getGroundAnchorA()PulleyJoint.getGroundAnchorB()MotorJoint.getLinearOffset()Get the target linear offset, in frame A, in meters.DistanceJoint.getLocalAnchorA()Get the local anchor point relative to bodyA's origin.FrictionJoint.getLocalAnchorA()Get the local anchor point relative to bodyA's origin.PrismaticJoint.getLocalAnchorA()PulleyJoint.getLocalAnchorA()RevoluteJoint.getLocalAnchorA()RopeJoint.getLocalAnchorA()WeldJoint.getLocalAnchorA()WheelJoint.getLocalAnchorA()DistanceJoint.getLocalAnchorB()Get the local anchor point relative to bodyB's origin.FrictionJoint.getLocalAnchorB()Get the local anchor point relative to bodyB's origin.PrismaticJoint.getLocalAnchorB()PulleyJoint.getLocalAnchorB()RevoluteJoint.getLocalAnchorB()RopeJoint.getLocalAnchorB()WeldJoint.getLocalAnchorB()WheelJoint.getLocalAnchorB()PrismaticJoint.getLocalAxisA()WheelJoint.getLocalAxisA()For serializationMouseJoint.getTarget()Methods in org.jbox2d.dynamics.joints with parameters of type Vec2Modifier and TypeMethodDescriptionvoidConstantVolumeJoint.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.voidMotorJoint.getAnchorA(Vec2 out) voidMouseJoint.getAnchorA(Vec2 argOut) voidPrismaticJoint.getAnchorA(Vec2 argOut) Get the anchor point on bodyA in world coordinates.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.voidMotorJoint.getAnchorB(Vec2 out) voidMouseJoint.getAnchorB(Vec2 argOut) voidPrismaticJoint.getAnchorB(Vec2 argOut) Get the anchor point on bodyB in world coordinates.voidPulleyJoint.getAnchorB(Vec2 argOut) voidRevoluteJoint.getAnchorB(Vec2 argOut) voidRopeJoint.getAnchorB(Vec2 argOut) voidWeldJoint.getAnchorB(Vec2 argOut) voidWheelJoint.getAnchorB(Vec2 argOut) voidMotorJoint.getLinearOffset(Vec2 out) Get the target linear offset, in frame A, in meters.voidConstantVolumeJoint.getReactionForce(float invDt, Vec2 argOut) No-opvoidDistanceJoint.getReactionForce(float invDt, Vec2 argOut) Get the reaction force given the inverse time step.voidFrictionJoint.getReactionForce(float invDt, Vec2 argOut) voidGearJoint.getReactionForce(float invDt, Vec2 argOut) abstract voidJoint.getReactionForce(float invDt, Vec2 out) Get the reaction force on body2 at the joint anchor in Newtons.voidMotorJoint.getReactionForce(float invDt, Vec2 out) voidMouseJoint.getReactionForce(float invDt, Vec2 argOut) voidPrismaticJoint.getReactionForce(float invDt, Vec2 argOut) Get the reaction force on bodyB at the joint anchor in Newtons.voidPulleyJoint.getReactionForce(float invDt, Vec2 argOut) voidRevoluteJoint.getReactionForce(float invDt, Vec2 argOut) voidRopeJoint.getReactionForce(float invDt, Vec2 argOut) voidWeldJoint.getReactionForce(float invDt, Vec2 argOut) voidWheelJoint.getReactionForce(float invDt, 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) voidMotorJoint.setLinearOffset(Vec2 linearOffset) Set the target linear offset, in frame A, in meters.void -
Uses of Vec2 in org.jbox2d.particle
Fields in org.jbox2d.particle declared as Vec2Modifier and TypeFieldDescriptionfinal Vec2ParticleGroupDef.linearVelocityThe linear velocity of the group's origin in world co-ordinates.final Vec2ParticleBodyContact.normalThe normalized direction from the particle to the body.final Vec2ParticleContact.normalThe normalized direction from A to B.final Vec2ParticleDef.positionThe world position of the particle.final Vec2ParticleGroupDef.positionThe world position of the group.final Vec2ParticleDef.velocityThe linear velocity of the particle in the world co-ordinates.Methods in org.jbox2d.particle that return Vec2Modifier and TypeMethodDescriptionParticleGroup.getCenter()Get the center of gravity for the group.ParticleGroup.getLinearVelocity()Get the linear velocity of the group.Vec2[]ParticleSystem.getParticlePositionBuffer()Vec2[]ParticleSystem.getParticleVelocityBuffer()ParticleGroup.getPosition()Get the position of the particle group as a whole.Methods in org.jbox2d.particle with parameters of type Vec2Modifier and TypeMethodDescriptionvoidVoronoiDiagram.addGenerator(Vec2 center, int tag) Add a generator.voidParticleSystem.raycast(ParticleRaycastCallback callback, Vec2 point1, Vec2 point2) Ray-cast the particle system for all particles in the path of the ray.voidParticleSystem.setParticlePositionBuffer(Vec2[] buffer, int capacity) voidParticleSystem.setParticleVelocityBuffer(Vec2[] buffer, int capacity) -
Uses of Vec2 in org.jbox2d.pooling
Methods in org.jbox2d.pooling that return Vec2 -
Uses of Vec2 in org.jbox2d.pooling.arrays
Methods in org.jbox2d.pooling.arrays that return Vec2Modifier and TypeMethodDescriptionVec2[]Vec2Array.get(int argLength) protected Vec2[]Vec2Array.getInitializedArray(int argLength) -
Uses of Vec2 in org.jbox2d.pooling.normal
Methods in org.jbox2d.pooling.normal that return Vec2 -
Uses of Vec2 in org.jbox2d.testbed.framework
Fields in org.jbox2d.testbed.framework declared as Vec2Methods in org.jbox2d.testbed.framework that return Vec2Modifier and TypeMethodDescriptionTestbedTest.getDefaultCameraPos()Override for a different default camera positionTestbedTest.getMouseTracerPosition()TestbedTest.getMouseTracerVelocity()TestbedTest.getWorldMouse()Gets the world position of the mouseMethods in org.jbox2d.testbed.framework with parameters of type Vec2Modifier and TypeMethodDescriptionDefaultWorldCreator.createWorld(Vec2 gravity) WorldCreator.createWorld(Vec2 gravity) voidvoidvoidvoidCalled for mouse-upvoidMoves the camera by the given distance in screen coordinates.voidAbstractTestbedController.queueMouseDown(Vec2 screenPos, int button) voidAbstractTestbedController.queueMouseDrag(Vec2 screenPos, int button) voidAbstractTestbedController.queueMouseMove(Vec2 screenPos) voidAbstractTestbedController.queueMouseUp(Vec2 screenPos, int button) voidSets the camera center positionvoidSets the camera center position and scalevoidDeprecated.voidDeprecated.voidTestbedCamera.zoomToPoint(Vec2 screenPosition, TestbedCamera.ZoomType zoomType) Zooms the camera to a point on the screen.Constructors in org.jbox2d.testbed.framework with parameters of type Vec2ModifierConstructorDescriptionTestbedCamera(Vec2 initPosition, float initScale, float zoomScaleDiff) -
Uses of Vec2 in org.jbox2d.testbed.framework.j2d
Methods in org.jbox2d.testbed.framework.j2d with parameters of type Vec2Modifier and TypeMethodDescriptionvoidDebugDrawJ2D.drawCircle(Vec2 center, float radius, Color3f color) voidDebugDrawJ2D.drawCircle(Vec2 center, float radius, Vec2 axis, Color3f color) voidDebugDrawJ2D.drawParticles(Vec2[] centers, float radius, ParticleColor[] colors, int count) voidDebugDrawJ2D.drawParticlesWireframe(Vec2[] centers, float radius, ParticleColor[] colors, int count) voidvoidDebugDrawJ2D.drawPolygon(Vec2[] vertices, int vertexCount, Color3f color) 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) -
Uses of Vec2 in org.jbox2d.testbed.perf
Fields in org.jbox2d.testbed.perf declared as Vec2Methods in org.jbox2d.testbed.perf that return Vec2Modifier and TypeMethodDescriptionfinal Vec2PoolingPerf.CirclePool.get()final Vec2PoolingPerf.CustStack.get()protected Vec2PoolingPerf.TLVec2.initialValue()Methods in org.jbox2d.testbed.perf with parameters of type Vec2 -
Uses of Vec2 in org.jbox2d.testbed.tests
Methods in org.jbox2d.testbed.tests that return Vec2Modifier and TypeMethodDescriptionBlobTest4.getDefaultCameraPos()BulletTest.getDefaultCameraPos()CircleStress.getDefaultCameraPos()DominoTower.getDefaultCameraPos()Methods in org.jbox2d.testbed.tests with parameters of type Vec2
TestbedTest.getCamera()