|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Vec2 | |
---|---|
org.jbox2d.collision | |
org.jbox2d.common | |
org.jbox2d.dynamics | |
org.jbox2d.dynamics.contacts | |
org.jbox2d.dynamics.joints | |
org.jbox2d.testbed |
Uses of Vec2 in org.jbox2d.collision |
---|
Fields in org.jbox2d.collision declared as Vec2 | |
---|---|
Vec2 |
OBB.center
|
Vec2 |
MassData.center
|
Vec2 |
OBB.extents
|
Vec2 |
ManifoldPoint.localPoint1
|
Vec2 |
ManifoldPoint.localPoint2
|
Vec2 |
CircleDef.localPosition
|
Vec2 |
AABB.lowerBound
|
Vec2 |
PolygonShape.m_centroid
|
Vec2[] |
PolygonShape.m_coreVertices
|
Vec2 |
CircleShape.m_localPosition
|
Vec2[] |
PolygonShape.m_normals
|
Vec2 |
BroadPhase.m_quantizationFactor
|
Vec2[] |
PolygonShape.m_vertices
|
Vec2 |
Manifold.normal
|
Vec2 |
Segment.p1
|
Vec2 |
Segment.p2
|
Vec2 |
AABB.upperBound
|
Fields in org.jbox2d.collision with type parameters of type Vec2 | |
---|---|
java.util.List<Vec2> |
PolygonDef.vertices
|
Methods in org.jbox2d.collision that return Vec2 | |
---|---|
Vec2 |
PolygonShape.centroid(XForm xf)
|
static Vec2 |
PolygonShape.computeCentroid(java.util.List<Vec2> vs)
|
Vec2 |
PolygonShape.getCentroid()
|
Vec2[] |
PolygonShape.getCoreVertices()
|
Vec2 |
SupportsGenericDistance.getFirstVertex(XForm xf)
|
Vec2 |
PolygonShape.getFirstVertex(XForm xf)
|
Vec2 |
CircleShape.getLocalPosition()
|
Vec2[] |
PolygonShape.getVertices()
|
Vec2 |
SupportsGenericDistance.support(XForm xf,
Vec2 v)
|
Vec2 |
PolygonShape.support(XForm xf,
Vec2 d)
|
Methods in org.jbox2d.collision with parameters of type Vec2 | |
---|---|
static void |
PolygonShape.computeOBB(OBB obb,
Vec2[] vs)
|
static float |
Distance.distance(Vec2 x1,
Vec2 x2,
Shape shape1,
XForm xf1,
Shape shape2,
XForm xf2)
|
protected static float |
Distance.DistanceCC(Vec2 x1,
Vec2 x2,
CircleShape circle1,
XForm xf1,
CircleShape circle2,
XForm xf2)
|
static float |
Distance.DistanceGeneric(Vec2 x1,
Vec2 x2,
SupportsGenericDistance shape1,
XForm xf1,
SupportsGenericDistance shape2,
XForm xf2)
|
protected static float |
Distance.DistancePC(Vec2 x1,
Vec2 x2,
PolygonShape polygon,
XForm xf1,
CircleShape circle,
XForm xf2)
|
protected static boolean |
Distance.InPoints(Vec2 w,
Vec2[] points,
int pointCount)
|
protected static boolean |
Distance.InPoints(Vec2 w,
Vec2[] points,
int pointCount)
|
protected static int |
Distance.ProcessThree(Vec2 x1,
Vec2 x2,
Vec2[] p1s,
Vec2[] p2s,
Vec2[] points)
|
protected static int |
Distance.ProcessThree(Vec2 x1,
Vec2 x2,
Vec2[] p1s,
Vec2[] p2s,
Vec2[] points)
|
protected static int |
Distance.ProcessThree(Vec2 x1,
Vec2 x2,
Vec2[] p1s,
Vec2[] p2s,
Vec2[] points)
|
protected static int |
Distance.ProcessThree(Vec2 x1,
Vec2 x2,
Vec2[] p1s,
Vec2[] p2s,
Vec2[] points)
|
protected static int |
Distance.ProcessTwo(Vec2 x1,
Vec2 x2,
Vec2[] p1s,
Vec2[] p2s,
Vec2[] points)
|
protected static int |
Distance.ProcessTwo(Vec2 x1,
Vec2 x2,
Vec2[] p1s,
Vec2[] p2s,
Vec2[] points)
|
protected static int |
Distance.ProcessTwo(Vec2 x1,
Vec2 x2,
Vec2[] p1s,
Vec2[] p2s,
Vec2[] points)
|
protected static int |
Distance.ProcessTwo(Vec2 x1,
Vec2 x2,
Vec2[] p1s,
Vec2[] p2s,
Vec2[] points)
|
void |
PolygonDef.setAsBox(float hx,
float hy,
Vec2 center,
float angle)
|
Vec2 |
SupportsGenericDistance.support(XForm xf,
Vec2 v)
|
Vec2 |
PolygonShape.support(XForm xf,
Vec2 d)
|
abstract boolean |
Shape.testPoint(XForm xf,
Vec2 p)
|
boolean |
PolygonShape.testPoint(XForm xf,
Vec2 p)
|
boolean |
CircleShape.testPoint(XForm transform,
Vec2 p)
|
abstract void |
Shape.updateSweepRadius(Vec2 center)
|
void |
PolygonShape.updateSweepRadius(Vec2 center)
|
void |
CircleShape.updateSweepRadius(Vec2 center)
|
Method parameters in org.jbox2d.collision with type arguments of type Vec2 | |
---|---|
static Vec2 |
PolygonShape.computeCentroid(java.util.List<Vec2> vs)
|
Constructors in org.jbox2d.collision with parameters of type Vec2 | |
---|---|
AABB(Vec2 minVertex,
Vec2 maxVertex)
|
|
OBB(Mat22 _R,
Vec2 _center,
Vec2 _extents)
|
Uses of Vec2 in org.jbox2d.common |
---|
Fields in org.jbox2d.common declared as Vec2 | |
---|---|
Vec2 |
Sweep.c
Center world positions |
Vec2 |
Sweep.c0
Center world positions |
Vec2 |
Mat22.col1
|
Vec2 |
Mat22.col2
|
Vec2 |
Sweep.localCenter
Local center of mass position |
Vec2 |
XForm.position
The translation caused by the transform |
Methods in org.jbox2d.common that return Vec2 | |
---|---|
Vec2 |
Vec2.abs()
|
static Vec2 |
Vec2.abs(Vec2 a)
|
Vec2 |
Vec2.add(Vec2 v)
|
Vec2 |
Vec2.addLocal(Vec2 v)
|
static Vec2 |
MathUtils.clamp(Vec2 a,
Vec2 low,
Vec2 high)
|
Vec2 |
Vec2.clone()
|
static Vec2 |
Vec2.cross(float s,
Vec2 a)
|
static Vec2 |
Vec2.cross(Vec2 a,
float s)
|
static Vec2 |
Vec2.max(Vec2 a,
Vec2 b)
|
static Vec2 |
Vec2.min(Vec2 a,
Vec2 b)
|
Vec2 |
Vec2.mul(float a)
|
static Vec2 |
Mat22.mul(Mat22 R,
Vec2 v)
|
Vec2 |
Mat22.mul(Vec2 v)
|
static Vec2 |
XForm.mul(XForm T,
Vec2 v)
|
Vec2 |
Vec2.mulLocal(float a)
|
static Vec2 |
Mat22.mulT(Mat22 R,
Vec2 v)
|
Vec2 |
Mat22.mulT(Vec2 v)
|
static Vec2 |
XForm.mulT(XForm T,
Vec2 v)
|
Vec2 |
Vec2.negate()
|
Vec2 |
Vec2.negateLocal()
|
Vec2 |
Mat22.solve(Vec2 b)
|
Vec2 |
Vec2.sub(Vec2 v)
|
Vec2 |
Vec2.subLocal(Vec2 v)
|
Methods in org.jbox2d.common with parameters of type Vec2 | |
---|---|
static Vec2 |
Vec2.abs(Vec2 a)
|
Vec2 |
Vec2.add(Vec2 v)
|
Vec2 |
Vec2.addLocal(Vec2 v)
|
static Vec2 |
MathUtils.clamp(Vec2 a,
Vec2 low,
Vec2 high)
|
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 float |
Vec2.dot(Vec2 a,
Vec2 b)
|
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)
|
static Vec2 |
XForm.mul(XForm T,
Vec2 v)
|
static Vec2 |
Mat22.mulT(Mat22 R,
Vec2 v)
|
Vec2 |
Mat22.mulT(Vec2 v)
|
static Vec2 |
XForm.mulT(XForm T,
Vec2 v)
|
void |
Vec2.set(Vec2 v)
|
void |
Mat22.set(Vec2 c1,
Vec2 c2)
|
Vec2 |
Mat22.solve(Vec2 b)
|
Vec2 |
Vec2.sub(Vec2 v)
|
Vec2 |
Vec2.subLocal(Vec2 v)
|
Constructors in org.jbox2d.common with parameters of type Vec2 | |
---|---|
Mat22(Vec2 c1,
Vec2 c2)
|
|
XForm(Vec2 _position,
Mat22 _R)
Initialize using a position vector and a rotation matrix. |
Uses of Vec2 in org.jbox2d.dynamics |
---|
Fields in org.jbox2d.dynamics declared as Vec2 | |
---|---|
Vec2 |
Body.m_force
|
Vec2 |
World.m_gravity
|
Vec2 |
Body.m_linearVelocity
|
Vec2 |
BodyDef.position
|
Methods in org.jbox2d.dynamics that return Vec2 | |
---|---|
Vec2 |
Body.getLinearVelocity()
Get a copy of the linear velocity of the center of mass. |
Vec2 |
Body.getLocalCenter()
Get a copy of 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 a copy of the world body origin position. |
Vec2 |
Body.getWorldCenter()
Get a copy of 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. |
Vec2 |
DebugDraw.screenToWorld(float screenx,
float screeny)
|
Vec2 |
DebugDraw.screenToWorld(Vec2 screenV)
|
Vec2 |
DebugDraw.worldToScreen(float worldx,
float worldy)
|
Vec2 |
DebugDraw.worldToScreen(Vec2 worldV)
|
Methods in org.jbox2d.dynamics with parameters of type Vec2 | |
---|---|
void |
Body.applyForce(Vec2 force,
Vec2 point)
Apply a force at a world point. |
void |
Body.applyImpulse(Vec2 impulse,
Vec2 point)
Apply an impulse at a point. |
abstract void |
DebugDraw.drawCircle(Vec2 center,
float radius,
javax.vecmath.Color3f color)
|
abstract void |
DebugDraw.drawPoint(Vec2 position,
float f,
javax.vecmath.Color3f color3f)
|
abstract void |
DebugDraw.drawPolygon(Vec2[] vertices,
int vertexCount,
javax.vecmath.Color3f color)
|
abstract void |
DebugDraw.drawSegment(Vec2 p1,
Vec2 p2,
javax.vecmath.Color3f color)
|
abstract void |
DebugDraw.drawSolidCircle(Vec2 center,
float radius,
Vec2 axis,
javax.vecmath.Color3f color)
|
abstract void |
DebugDraw.drawSolidPolygon(Vec2[] vertices,
int vertexCount,
javax.vecmath.Color3f color)
|
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.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. |
Vec2 |
DebugDraw.screenToWorld(Vec2 screenV)
|
void |
Body.setLinearVelocity(Vec2 v)
Set the linear velocity of the center of mass. |
boolean |
Body.setXForm(Vec2 position,
float angle)
Set the position of the body's origin and rotation (radians). |
void |
Island.solve(TimeStep step,
Vec2 gravity,
boolean correctPositions,
boolean allowSleep)
|
Vec2 |
DebugDraw.worldToScreen(Vec2 worldV)
|
Constructors in org.jbox2d.dynamics with parameters of type Vec2 | |
---|---|
World(AABB worldAABB,
Vec2 gravity,
boolean doSleep)
Construct a world object. |
Uses of Vec2 in org.jbox2d.dynamics.contacts |
---|
Fields in org.jbox2d.dynamics.contacts declared as Vec2 | |
---|---|
Vec2 |
ContactConstraintPoint.localAnchor1
|
Vec2 |
ContactConstraintPoint.localAnchor2
|
Vec2 |
ContactPoint.normal
|
Vec2 |
ContactConstraint.normal
|
Vec2 |
ContactPoint.position
|
Vec2 |
ContactConstraintPoint.r1
|
Vec2 |
ContactConstraintPoint.r2
|
Uses of Vec2 in org.jbox2d.dynamics.joints |
---|
Fields in org.jbox2d.dynamics.joints declared as Vec2 | |
---|---|
Vec2 |
PulleyJointDef.groundAnchor1
|
Vec2 |
PulleyJointDef.groundAnchor2
|
Vec2 |
Jacobian.linear1
|
Vec2 |
Jacobian.linear2
|
Vec2 |
RevoluteJointDef.localAnchor1
|
Vec2 |
PulleyJointDef.localAnchor1
|
Vec2 |
PrismaticJointDef.localAnchor1
|
Vec2 |
DistanceJointDef.localAnchor1
The local anchor point relative to body1's origin. |
Vec2 |
RevoluteJointDef.localAnchor2
|
Vec2 |
PulleyJointDef.localAnchor2
|
Vec2 |
PrismaticJointDef.localAnchor2
|
Vec2 |
DistanceJointDef.localAnchor2
The local anchor point relative to body2's origin. |
Vec2 |
PrismaticJointDef.localAxis1
|
Vec2 |
MouseJoint.m_C
|
Vec2 |
MouseJoint.m_force
|
Vec2 |
PulleyJoint.m_groundAnchor1
|
Vec2 |
GearJoint.m_groundAnchor1
|
Vec2 |
PulleyJoint.m_groundAnchor2
|
Vec2 |
GearJoint.m_groundAnchor2
|
Vec2 |
MouseJoint.m_localAnchor
|
Vec2 |
RevoluteJoint.m_localAnchor1
|
Vec2 |
PulleyJoint.m_localAnchor1
|
Vec2 |
PrismaticJoint.m_localAnchor1
|
Vec2 |
GearJoint.m_localAnchor1
|
Vec2 |
DistanceJoint.m_localAnchor1
|
Vec2 |
RevoluteJoint.m_localAnchor2
|
Vec2 |
PulleyJoint.m_localAnchor2
|
Vec2 |
PrismaticJoint.m_localAnchor2
|
Vec2 |
GearJoint.m_localAnchor2
|
Vec2 |
DistanceJoint.m_localAnchor2
|
Vec2 |
PrismaticJoint.m_localXAxis1
|
Vec2 |
PrismaticJoint.m_localYAxis1
|
Vec2 |
RevoluteJoint.m_pivotForce
|
Vec2 |
MouseJoint.m_target
|
Vec2 |
DistanceJoint.m_u
|
Vec2 |
PulleyJoint.m_u1
|
Vec2 |
PulleyJoint.m_u2
|
Vec2 |
MouseJointDef.target
The initial world target point. |
Methods in org.jbox2d.dynamics.joints that return Vec2 | |
---|---|
Vec2 |
RevoluteJoint.getAnchor1()
|
Vec2 |
PulleyJoint.getAnchor1()
|
Vec2 |
PrismaticJoint.getAnchor1()
|
Vec2 |
MouseJoint.getAnchor1()
|
abstract Vec2 |
Joint.getAnchor1()
Get the anchor point on body1 in world coordinates. |
Vec2 |
GearJoint.getAnchor1()
|
Vec2 |
DistanceJoint.getAnchor1()
|
Vec2 |
RevoluteJoint.getAnchor2()
|
Vec2 |
PulleyJoint.getAnchor2()
|
Vec2 |
PrismaticJoint.getAnchor2()
|
Vec2 |
MouseJoint.getAnchor2()
|
abstract Vec2 |
Joint.getAnchor2()
Get the anchor point on body2 in world coordinates. |
Vec2 |
GearJoint.getAnchor2()
|
Vec2 |
DistanceJoint.getAnchor2()
|
Vec2 |
PulleyJoint.getGroundAnchor1()
|
Vec2 |
PulleyJoint.getGroundAnchor2()
|
Vec2 |
RevoluteJoint.getReactionForce()
|
Vec2 |
PulleyJoint.getReactionForce()
|
Vec2 |
PrismaticJoint.getReactionForce()
|
Vec2 |
MouseJoint.getReactionForce()
|
abstract Vec2 |
Joint.getReactionForce()
Get the reaction force on body2 at the joint anchor. |
Vec2 |
GearJoint.getReactionForce()
|
Vec2 |
DistanceJoint.getReactionForce()
|
Methods in org.jbox2d.dynamics.joints with parameters of type Vec2 | |
---|---|
void |
RevoluteJointDef.initialize(Body b1,
Body b2,
Vec2 anchor)
|
void |
DistanceJointDef.initialize(Body b1,
Body b2,
Vec2 anchor1,
Vec2 anchor2)
Initialize the bodies, anchors, and length using the world anchors. |
void |
MouseJoint.setTarget(Vec2 target)
Use this to update the target point. |
Uses of Vec2 in org.jbox2d.testbed |
---|
Fields in org.jbox2d.testbed declared as Vec2 | |
---|---|
protected Vec2 |
AbstractExample.bombSpawnPoint
The point at which we will place a bomb when completeBombSpawn() is called. |
Vec2 |
AbstractExample.mouseScreen
Screen coordinates of mouse |
Vec2 |
AbstractExample.mouseWorld
World coordinates of mouse |
Vec2 |
AbstractExample.pmouseScreen
Screen coordinates of mouse on last frame |
Methods in org.jbox2d.testbed that return Vec2 | |
---|---|
Vec2 |
ProcessingDebugDraw.screenToWorld(float x,
float y)
|
Vec2 |
ProcessingDebugDraw.screenToWorld(Vec2 screen)
|
Vec2 |
ProcessingDebugDraw.worldToScreen(float x,
float y)
|
Vec2 |
ProcessingDebugDraw.worldToScreen(Vec2 world)
|
Methods in org.jbox2d.testbed with parameters of type Vec2 | |
---|---|
void |
ProcessingDebugDraw.drawCircle(Vec2 center,
float radius,
javax.vecmath.Color3f color)
|
void |
ProcessingDebugDraw.drawPoint(Vec2 position,
float f,
javax.vecmath.Color3f color)
|
void |
ProcessingDebugDraw.drawPolygon(Vec2[] vertices,
int vertexCount,
javax.vecmath.Color3f color)
|
void |
ProcessingDebugDraw.drawSegment(Vec2 p1,
Vec2 p2,
javax.vecmath.Color3f color)
|
void |
ProcessingDebugDraw.drawSolidCircle(Vec2 center,
float radius,
Vec2 axis,
javax.vecmath.Color3f color)
|
void |
ProcessingDebugDraw.drawSolidPolygon(Vec2[] vertices,
int vertexCount,
javax.vecmath.Color3f color)
|
void |
AbstractExample.launchBomb(Vec2 position,
Vec2 velocity)
Launch bomb from a specific position with a given velocity. |
void |
AbstractExample.mouseDown(Vec2 p)
Handle mouseDown events. |
void |
AbstractExample.mouseMove(Vec2 p)
Handle mouseMove events (TestbedMain also sends mouseDragged events here) |
Vec2 |
ProcessingDebugDraw.screenToWorld(Vec2 screen)
|
void |
AbstractExample.spawnBomb(Vec2 worldPt)
Begins spawning a bomb, spawn finishes and bomb is created upon calling completeBombSpawn(). |
Vec2 |
ProcessingDebugDraw.worldToScreen(Vec2 world)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |