|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Vec2 | |
---|---|
org.jbox2d.collision | This package contains the broad and narrow phase collision algorithms. |
org.jbox2d.collision.shapes | |
org.jbox2d.common | This package contains various math and utility functions used by all of JBox2d, including vectors (Vec2), matrices (Mat22), transforms (XForm), colors (Color3f), and CCD sweeps (Sweep), as well as the global settings for the simulation (Settings). |
org.jbox2d.dynamics | This package handles non-collision aspects of simulation. |
org.jbox2d.dynamics.contacts | This package performs contact handling, and is essentially internal to JBox2d. |
org.jbox2d.dynamics.joints | This package deals with all things joint-related. |
org.jbox2d.p5 | This package makes up the BoxWrap2d library for Processing, a simple layer on top of JBox2d to ease construction, simulation, and display of physical worlds when using Processing. |
org.jbox2d.testbed | The JBox2d 2.0 testbed, implemented using Processing. |
org.jbox2d.testbed.tests | This package containst all the testbed examples, which extend org.jbox2d.testbed.AbstractExample. |
org.jbox2d.util.blob | |
org.jbox2d.util.nonconvex | This package (currently non-functional) will handle convex decomposition of polygons. |
org.jbox2d.util.sph |
Uses of Vec2 in org.jbox2d.collision |
---|
Fields in org.jbox2d.collision declared as Vec2 | |
---|---|
Vec2 |
OBB.center
The local centroid. |
Vec2 |
MassData.center
The position of the shape's centroid relative to the shape's origin. |
Vec2 |
OBB.extents
The half-widths. |
Vec2 |
ManifoldPoint.localPoint1
Local position of the contact point in body1 |
Vec2 |
ManifoldPoint.localPoint2
Local position of the contact point in body2 |
Vec2 |
AABB.lowerBound
Bottom left vertex of bounding box. |
Vec2 |
BroadPhase.m_quantizationFactor
|
Vec2 |
Manifold.normal
The shared unit normal vector. |
Vec2 |
Segment.p1
|
Vec2 |
Segment.p2
|
Vec2 |
AABB.upperBound
Top right vertex of bounding box. |
Methods in org.jbox2d.collision with parameters of type Vec2 | |
---|---|
static float |
Distance.distance(Vec2 x1,
Vec2 x2,
Shape shape1,
XForm xf1,
Shape shape2,
XForm xf2)
Find the closest distance between shapes shape1 and shape2, and load the closest points into x1 and x2. |
static float |
Distance.DistanceCC(Vec2 x1,
Vec2 x2,
CircleShape circle1,
XForm xf1,
CircleShape circle2,
XForm xf2)
distance between two circle shapes |
static float |
Distance.DistanceCirclePoint(Vec2 x1,
Vec2 x2,
CircleShape circle1,
XForm xf1,
PointShape pt2,
XForm xf2)
Distance between a circle and a point |
static float |
Distance.DistanceEdgeCircle(Vec2 x1,
Vec2 x2,
EdgeShape edge,
XForm xf1,
CircleShape circle,
XForm xf2)
Distance bewteen an edge and a circle |
static float |
Distance.DistanceGeneric(Vec2 x1,
Vec2 x2,
SupportsGenericDistance shape1,
XForm xf1,
SupportsGenericDistance shape2,
XForm xf2)
Distance between any two objects that implement SupportsGenericDistance. |
static float |
Distance.DistancePC(Vec2 x1,
Vec2 x2,
PolygonShape polygon,
XForm xf1,
CircleShape circle,
XForm xf2)
Distance between a polygon and a circle |
static float |
Distance.DistancePolygonPoint(Vec2 x1,
Vec2 x2,
PolygonShape polygon,
XForm xf1,
PointShape pt,
XForm xf2)
Distance between a polygon and a point |
void |
SupportsGenericDistance.getFirstVertexToOut(XForm xf,
Vec2 out)
|
static boolean |
Distance.InPoints(Vec2 w,
Vec2[] points,
int pointCount)
|
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 |
SupportsGenericDistance.support(Vec2 dest,
XForm xf,
Vec2 v)
|
Constructors in org.jbox2d.collision with parameters of type Vec2 | |
---|---|
AABB(Vec2 lowerVertex,
Vec2 upperVertex)
Creates an AABB object using the given bounding vertices. |
|
OBB(Mat22 _R,
Vec2 _center,
Vec2 _extents)
creates OBB with the given data. |
Uses of Vec2 in org.jbox2d.collision.shapes |
---|
Fields in org.jbox2d.collision.shapes declared as Vec2 | |
---|---|
Vec2 |
PointDef.localPosition
|
Vec2 |
CircleDef.localPosition
|
Vec2 |
PolygonShape.m_centroid
Local position of the shape centroid in parent body frame. |
Vec2[] |
PolygonShape.m_coreVertices
The normals of the shape. |
Vec2 |
PointShape.m_localPosition
|
Vec2 |
CircleShape.m_localPosition
|
Vec2[] |
PolygonShape.m_normals
The normals of the shape. |
Vec2[] |
PolygonShape.m_vertices
The vertices of the shape. |
Fields in org.jbox2d.collision.shapes with type parameters of type Vec2 | |
---|---|
List<Vec2> |
PolygonDef.vertices
The polygon vertices in local coordinates. |
Methods in org.jbox2d.collision.shapes that return Vec2 | |
---|---|
Vec2 |
PolygonShape.centroid(XForm xf)
Get the centroid and apply the supplied transform. |
static Vec2 |
PolygonShape.computeCentroid(List<Vec2> vs)
|
Vec2 |
PolygonShape.getCentroid()
Get the local centroid relative to the parent body. |
Vec2 |
EdgeShape.getCoreVertex1()
"Core" vertex with TOI slop for b2Distance functions |
Vec2 |
EdgeShape.getCoreVertex2()
"Core" vertex with TOI slop for b2Distance functions |
Vec2[] |
PolygonShape.getCoreVertices()
Get the core vertices in local coordinates. |
Vec2 |
EdgeShape.getCorner1Vector()
|
Vec2 |
EdgeShape.getCorner2Vector()
|
Vec2 |
EdgeShape.getDirectionVector()
Parallel unit vector, pointing from vertex1 to vertex2 |
Vec2 |
PointShape.getLocalPosition()
|
Vec2 |
CircleShape.getLocalPosition()
Returns a copy of the local position |
Vec2 |
PointShape.getMemberLocalPosition()
This is the member variable for the local position. |
Vec2 |
CircleShape.getMemberLocalPosition()
Returns the member variable of the local position. |
Vec2[] |
PolygonShape.getNormals()
Get the edge normal vectors. |
Vec2 |
EdgeShape.getNormalVector()
Perpendecular unit vector point, pointing from the solid side to the empty side. |
Vec2 |
EdgeShape.getVertex1()
Local position of vertex in parent body |
Vec2 |
EdgeShape.getVertex2()
Local position of vertex in parent body |
Vec2[] |
PolygonDef.getVertexArray()
Return the vertex list as an array. |
Vec2[] |
PolygonShape.getVertices()
Get the vertices in local coordinates. |
Methods in org.jbox2d.collision.shapes that return types with arguments of type Vec2 | |
---|---|
List<Vec2> |
PolygonDef.getVertexList()
Return the vertex list as a List |
List<Vec2> |
EdgeChainDef.getVertices()
Return the raw vertex list. |
Methods in org.jbox2d.collision.shapes with parameters of type Vec2 | |
---|---|
void |
PolygonDef.addVertex(Vec2 v)
Add a vertex to the polygon. |
void |
EdgeChainDef.addVertex(Vec2 newV)
Add a vertex to the chain. |
static int |
CollidePoly.clipSegmentToLine(org.jbox2d.collision.shapes.CollidePoly.ClipVertex[] vOut,
org.jbox2d.collision.shapes.CollidePoly.ClipVertex[] vIn,
Vec2 normal,
float offset)
|
static void |
PolygonShape.computeOBB(OBB obb,
Vec2[] vs)
|
void |
PolygonShape.getFirstVertexToOut(XForm xf,
Vec2 out)
Get the first vertex and apply the supplied transform. |
void |
EdgeShape.getFirstVertexToOut(XForm xf,
Vec2 out)
|
void |
PolygonDef.setAsBox(float hx,
float hy,
Vec2 center,
float angle)
Build vertices to represent an oriented box. |
void |
EdgeShape.setNextEdge(EdgeShape edge,
Vec2 core,
Vec2 cornerDir,
boolean convex)
|
void |
EdgeShape.setPrevEdge(EdgeShape edge,
Vec2 core,
Vec2 cornerDir,
boolean convex)
|
void |
PolygonShape.support(Vec2 dest,
XForm xf,
Vec2 d)
Get the support point in the given world direction. |
void |
EdgeShape.support(Vec2 dest,
XForm xf,
Vec2 d)
|
abstract boolean |
Shape.testPoint(XForm xf,
Vec2 p)
Test a point for containment in this shape. |
boolean |
PolygonShape.testPoint(XForm xf,
Vec2 p)
|
boolean |
PointShape.testPoint(XForm xf,
Vec2 p)
|
boolean |
EdgeShape.testPoint(XForm transform,
Vec2 p)
|
boolean |
CircleShape.testPoint(XForm transform,
Vec2 p)
checks to see if the point is in this shape. |
abstract void |
Shape.updateSweepRadius(Vec2 center)
Internal |
void |
PolygonShape.updateSweepRadius(Vec2 center)
|
void |
PointShape.updateSweepRadius(Vec2 center)
|
void |
EdgeShape.updateSweepRadius(Vec2 center)
|
void |
CircleShape.updateSweepRadius(Vec2 center)
|
Method parameters in org.jbox2d.collision.shapes with type arguments of type Vec2 | |
---|---|
static Vec2 |
PolygonShape.computeCentroid(List<Vec2> vs)
|
Constructors in org.jbox2d.collision.shapes with parameters of type Vec2 | |
---|---|
CircleDef(Vec2 argVec)
creates the circle definition at the given point with a radius of 1 |
|
EdgeShape(Vec2 v1,
Vec2 v2,
ShapeDef def)
Don't use this. |
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()
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()
|
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)
Return this vector multiplied by a scalar; does not alter this vector. |
static Vec2 |
Mat22.mul(Mat22 R,
Vec2 v)
|
Vec2 |
Mat22.mul(Vec2 v)
Multiply a vector by this matrix. |
static Vec2 |
XForm.mul(XForm T,
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 |
XForm.mulTrans(XForm 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 |
Mat22.solve(Vec2 b)
Solve A * x = b where A = this matrix. |
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 | |
---|---|
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 float |
Vec2.dot(Vec2 a,
Vec2 b)
|
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 |
XForm.mul(XForm T,
Vec2 v)
|
static void |
Mat22.mulToOut(Mat22 R,
Vec2 v,
Vec2 out)
|
void |
Mat22.mulToOut(Vec2 v,
Vec2 out)
|
static void |
XForm.mulToOut(XForm 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 Vec2 |
XForm.mulTrans(XForm T,
Vec2 v)
|
static void |
Mat22.mulTransToOut(Mat22 R,
Vec2 v,
Vec2 out)
|
void |
Mat22.mulTransToOut(Vec2 v,
Vec2 out)
|
static void |
XForm.mulTransToOut(XForm T,
Vec2 v,
Vec2 out)
|
static void |
Vec2.negateToOut(Vec2 a,
Vec2 out)
|
void |
Vec2.set(Vec2 v)
Set this vector to another vector. |
void |
Mat22.set(Vec2 c1,
Vec2 c2)
Set by column vectors. |
Vec2 |
Mat22.solve(Vec2 b)
Solve A * x = b where A = this matrix. |
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 | |
---|---|
Mat22(Vec2 c1,
Vec2 c2)
Create a matrix with given vectors as columns. |
|
Vec2(Vec2 toCopy)
|
|
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 |
Body.m_linearVelocity
|
Vec2 |
BodyDef.position
The world position of the body. |
Methods in org.jbox2d.dynamics that return Vec2 | |
---|---|
Vec2 |
World.getGravity()
Get a clone of 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 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.getMemberLocalCenter()
More for internal use. |
Vec2 |
Body.getMemberPosition()
This is more for internal use. |
Vec2 |
Body.getMemberWorldCenter()
More for internal use. |
Vec2 |
Body.getPosition()
You probably don't want to use this function. |
Vec2 |
Body.getWorldCenter()
Get a copy of the world position of the center of mass. |
Vec2 |
Body.getWorldDirection(Vec2 localDirection)
Get the world coordinates of a direction given the local direction. |
Vec2 |
Body.getWorldLocation(Vec2 localPoint)
Get the world coordinates of a point given the local coordinates. |
Vec2 |
Body.getWorldPoint(Vec2 localPoint)
Deprecated. Use getWorldLocation instead (clearer naming convention) |
Vec2 |
Body.getWorldVector(Vec2 localVector)
Deprecated. Use getWorldDirection instead (clearer naming convention) |
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,
Color3f color)
|
abstract void |
DebugDraw.drawPoint(Vec2 position,
float f,
Color3f color3f)
|
abstract void |
DebugDraw.drawPolygon(Vec2[] vertices,
int vertexCount,
Color3f color)
|
abstract void |
DebugDraw.drawSegment(Vec2 p1,
Vec2 p2,
Color3f color)
|
abstract void |
DebugDraw.drawSolidCircle(Vec2 center,
float radius,
Vec2 axis,
Color3f color)
|
abstract void |
DebugDraw.drawSolidPolygon(Vec2[] vertices,
int vertexCount,
Color3f color)
|
Vec2 |
Body.getLinearVelocityFromLocalPoint(Vec2 localPoint)
Get the world velocity of a local point. |
void |
Body.getLinearVelocityFromLocalPointToOut(Vec2 localPoint,
Vec2 out)
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. |
void |
Body.getLinearVelocityFromWorldPointToOut(Vec2 worldPoint,
Vec2 out)
Get the world linear velocity of a world point attached to this body. |
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)
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. |
void |
Body.getLocalVectorToOut(Vec2 worldVector,
Vec2 out)
Gets a local vector given a world vector. |
Vec2 |
Body.getWorldDirection(Vec2 localDirection)
Get the world coordinates of a direction given the local direction. |
void |
Body.getWorldDirectionToOut(Vec2 localDirection,
Vec2 out)
Get the world coordinates of a direction given the local direction. |
Vec2 |
Body.getWorldLocation(Vec2 localPoint)
Get the world coordinates of a point given the local coordinates. |
void |
Body.getWorldLocationToOut(Vec2 localPoint,
Vec2 out)
Get the world coordinates of a point given the local coordinates. |
Vec2 |
Body.getWorldPoint(Vec2 localPoint)
Deprecated. Use getWorldLocation instead (clearer naming convention) |
Vec2 |
Body.getWorldVector(Vec2 localVector)
Deprecated. Use getWorldDirection instead (clearer naming convention) |
Vec2 |
DebugDraw.screenToWorld(Vec2 screenV)
|
void |
World.setGravity(Vec2 gravity)
Change the global gravity vector. |
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 |
ContactResult.normal
Points from shape1 to shape2 |
Vec2 |
ContactPoint.normal
Points from shape1 to shape2 |
Vec2 |
ContactConstraint.normal
|
Vec2 |
ContactResult.position
Position in world coordinates |
Vec2 |
ContactPoint.position
Position in world coordinates |
Vec2 |
ContactConstraintPoint.r1
|
Vec2 |
ContactConstraintPoint.r2
|
Vec2 |
ContactPoint.velocity
Velocity of point on body2 relative to point on body1 (pre-solver) |
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
The local anchor point relative to body1's origin. |
Vec2 |
PulleyJointDef.localAnchor1
|
Vec2 |
PrismaticJointDef.localAnchor1
|
Vec2 |
DistanceJointDef.localAnchor1
The local anchor point relative to body1's origin. |
Vec2 |
RevoluteJointDef.localAnchor2
The local anchor point relative to body2's origin. |
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 |
ConstantVolumeJoint.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 |
ConstantVolumeJoint.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()
|
Vec2 |
ConstantVolumeJoint.getReactionForce()
|
Methods in org.jbox2d.dynamics.joints with parameters of type Vec2 | |
---|---|
void |
PrismaticJoint.getAnchor1ToOut(Vec2 out)
|
void |
GearJoint.getAnchor1ToOut(Vec2 out)
|
void |
PrismaticJoint.getAnchor2ToOut(Vec2 out)
|
void |
GearJoint.getAnchor2ToOut(Vec2 out)
|
void |
PrismaticJoint.getReactionForceToOut(Vec2 out)
|
void |
GearJoint.getReactionForceToOut(Vec2 out)
|
void |
RevoluteJointDef.initialize(Body b1,
Body b2,
Vec2 anchor)
|
void |
PrismaticJointDef.initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis)
|
void |
DistanceJointDef.initialize(Body b1,
Body b2,
Vec2 anchor1,
Vec2 anchor2)
Initialize the bodies, anchors, and length using the world anchors. |
void |
PulleyJointDef.initialize(Body b1,
Body b2,
Vec2 ga1,
Vec2 ga2,
Vec2 anchor1,
Vec2 anchor2,
float r)
|
void |
MouseJoint.setTarget(Vec2 target)
Use this to update the target point. |
Uses of Vec2 in org.jbox2d.p5 |
---|
Methods in org.jbox2d.p5 that return Vec2 | |
---|---|
Vec2 |
Physics.getCMPosition(Body b)
Get the center of mass position (screen coordinates) |
Vec2 |
Physics.getPosition(Body b)
Get the location of the body's origin (screen coordinates) - note that this does not usually correspond to the center of mass position, which may be obtained by calling Physics.getCMPosition(Body) . |
Vec2 |
Physics.screenToWorld(float x,
float y)
Screen space to world space conversion for position. |
Vec2 |
Physics.screenToWorld(Vec2 v)
Screen space to world space conversion for position. |
Vec2 |
Physics.screenToWorldVector(float sx,
float sy)
|
Vec2 |
Physics.screenToWorldVector(Vec2 screenV)
|
Vec2 |
Physics.worldToScreen(float x,
float y)
World space to screen space conversion for position. |
Vec2 |
Physics.worldToScreen(Vec2 v)
World space to screen space conversion for position. |
Vec2 |
Physics.worldToScreenVector(float wx,
float wy)
|
Vec2 |
Physics.worldToScreenVector(Vec2 worldV)
|
Methods in org.jbox2d.p5 with parameters of type Vec2 | |
---|---|
static float |
PhysicsUtils.angle(Vec2 a)
Returns the clockwise angle of vector A, relative to the horizontal. |
static float |
PhysicsUtils.angle(Vec2 a,
Vec2 b)
Returns the clockwise angle from vector A to vector B. |
void |
Physics.applyForce(Body b,
Vec2 f)
Apply a force to the body at the center of mass. |
void |
Physics.applyForce(Body b,
Vec2 f,
Vec2 point)
Apply a force to a body at a point |
static DistanceJoint |
JointUtils.createDistanceJoint(World w,
Vec2 pA,
Vec2 pB)
Creates a distance joint between bodies that touch the given points, anchored at those points. |
static RevoluteJoint |
JointUtils.createRevoluteJoint(Body a,
Body b,
Vec2 worldCenter)
Creates a RevoluteJoint between two bodies that rotates around a given point in World coordinates. |
void |
ForceUtils.push(Body b,
Vec2 dir,
double force)
Pushes a body in the specified direction. |
void |
ForceUtils.pushTowards(Body b,
Vec2 worldTarget,
double force)
Pushes a body towards the specified location. |
Vec2 |
Physics.screenToWorld(Vec2 v)
Screen space to world space conversion for position. |
Vec2 |
Physics.screenToWorldVector(Vec2 screenV)
|
Vec2 |
Physics.worldToScreen(Vec2 v)
World space to screen space conversion for position. |
Vec2 |
Physics.worldToScreenVector(Vec2 worldV)
|
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 |
ExampleContactPoint.normal
|
Vec2 |
AbstractExample.pmouseScreen
Screen coordinates of mouse on last frame |
Vec2 |
ExampleContactPoint.position
|
Vec2 |
ExampleContactPoint.velocity
|
Methods in org.jbox2d.testbed that return Vec2 | |
---|---|
Vec2 |
ProcessingDebugDraw.screenToWorld(float x,
float y)
|
Vec2 |
ProcessingDebugDraw.screenToWorld(Vec2 screen)
|
Vec2 |
ProcessingDebugDraw.screenToWorldVector(float x,
float y)
|
Vec2 |
ProcessingDebugDraw.screenToWorldVector(Vec2 screen)
|
Vec2 |
ProcessingDebugDraw.worldToScreen(float x,
float y)
|
Vec2 |
ProcessingDebugDraw.worldToScreen(Vec2 world)
|
Vec2 |
ProcessingDebugDraw.worldToScreenVector(float x,
float y)
|
Vec2 |
ProcessingDebugDraw.worldToScreenVector(Vec2 world)
|
Methods in org.jbox2d.testbed with parameters of type Vec2 | |
---|---|
void |
AbstractExample.bindImage(processing.core.PImage p,
Vec2 localOffset,
float localRotation,
float localScale,
Body b)
Draws an image on a body. |
void |
ProcessingDebugDraw.drawCircle(Vec2 center,
float radius,
Color3f color)
|
void |
ProcessingDebugDraw.drawImage(processing.core.PImage image,
Vec2 position,
float rotation,
float localScale,
Vec2 localOffset,
float halfImageWidth,
float halfImageHeight)
First image is centered on position, then localScale is applied, then localOffset, and lastly rotation. |
void |
ProcessingDebugDraw.drawPoint(Vec2 position,
float f,
Color3f color)
|
void |
ProcessingDebugDraw.drawPolygon(Vec2[] vertices,
int vertexCount,
Color3f color)
|
void |
ProcessingDebugDraw.drawSegment(Vec2 p1,
Vec2 p2,
Color3f color)
|
void |
ProcessingDebugDraw.drawSolidCircle(Vec2 center,
float radius,
Vec2 axis,
Color3f color)
|
void |
ProcessingDebugDraw.drawSolidPolygon(Vec2[] vertices,
int vertexCount,
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)
|
Vec2 |
ProcessingDebugDraw.screenToWorldVector(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)
|
Vec2 |
ProcessingDebugDraw.worldToScreenVector(Vec2 world)
|
Uses of Vec2 in org.jbox2d.testbed.tests |
---|
Fields in org.jbox2d.testbed.tests declared as Vec2 | |
---|---|
Vec2[] |
SpriteBinding.localCoords
|
Vec2[] |
SpriteBinding.texCoords
|
Methods in org.jbox2d.testbed.tests with parameters of type Vec2 | |
---|---|
void |
SpringRestitutionTest.addSpringForce(Body bA,
Vec2 localA,
Body bB,
Vec2 localB,
float k,
float friction,
float desiredDist)
|
void |
SensorTest.addSpringForce(Body bA,
Vec2 localA,
Body bB,
Vec2 localB,
float k,
float friction,
float desiredDist)
|
void |
SensorTest.createParticle(Vec2 pos)
|
void |
ShapeDrawing.createStrokeRect(Vec2 start,
Vec2 end,
float radius,
Body body,
PolygonDef sd)
|
void |
ShapeDrawing.mouseDown(Vec2 p)
|
void |
ShapeDrawing.mouseMove(Vec2 p)
|
Constructors in org.jbox2d.testbed.tests with parameters of type Vec2 | |
---|---|
Biped(World w,
Vec2 position)
|
Uses of Vec2 in org.jbox2d.util.blob |
---|
Fields in org.jbox2d.util.blob declared as Vec2 | |
---|---|
Vec2 |
BlobPoint.position
|
Methods in org.jbox2d.util.blob that return Vec2 | |
---|---|
Vec2 |
CircularBlobContainer.getCenter()
|
Methods in org.jbox2d.util.blob with parameters of type Vec2 | |
---|---|
boolean |
DonutBlobContainer.containsPoint(Vec2 p)
|
boolean |
CircularBlobContainer.containsPoint(Vec2 p)
|
boolean |
BlobContainer.containsPoint(Vec2 p)
Is the Vec2 within the desired geometry? |
void |
CircularBlobContainer.setCenter(Vec2 c)
|
Constructors in org.jbox2d.util.blob with parameters of type Vec2 | |
---|---|
CircularBlobContainer(Vec2 _center,
float _radius)
|
|
DonutBlobContainer(Vec2 _center,
float _radiusSmall,
float _radiusLarge)
|
Uses of Vec2 in org.jbox2d.util.nonconvex |
---|
Methods in org.jbox2d.util.nonconvex that return Vec2 | |
---|---|
Vec2[] |
Polygon.getVertexVecs()
|
static Vec2 |
Polygon.polyCentroid(Vec2[] vs,
int count)
|
Methods in org.jbox2d.util.nonconvex with parameters of type Vec2 | |
---|---|
static Polygon |
Polygon.convexHull(Vec2[] v,
int nVert)
Find the convex hull of a point cloud using "Gift-wrap" algorithm - start with an extremal point, and walk around the outside edge by testing angles. |
static Vec2 |
Polygon.polyCentroid(Vec2[] vs,
int count)
|
Constructors in org.jbox2d.util.nonconvex with parameters of type Vec2 | |
---|---|
Polygon(Vec2[] v)
|
|
Polygon(Vec2[] v,
int nVert)
|
Uses of Vec2 in org.jbox2d.util.sph |
---|
Fields in org.jbox2d.util.sph declared as Vec2 | |
---|---|
protected Vec2 |
SmoothParticle.ChangeVelocity
|
Vec2 |
Parameter.initVel
|
Vec2 |
Particle.pos
|
Vec2 |
Particle.vel
|
Methods in org.jbox2d.util.sph that return Vec2 | |
---|---|
Vec2 |
SmoothParticle.getChangeVelocity()
|
Methods in org.jbox2d.util.sph with parameters of type Vec2 | |
---|---|
void |
SmoothParticle.calcChangeDensity(SmoothParticle sp,
Vec2 v_ij)
Adds the contributions of the change in density from the neighbor "sp". |
void |
SmoothParticle.calcChangeVelocity(SmoothParticle sp,
Vec2 v_ij,
Parameter param)
Add the contribution of the acceleration due to the free particle "sp". |
void |
SmoothParticle.setChangeVelocity(Vec2 ChangeV)
|
Constructors in org.jbox2d.util.sph with parameters of type Vec2 | |
---|---|
Particle(Vec2 p,
Vec2 v,
double m)
|
|
SmoothParticle(Vec2 p,
Vec2 v,
double m,
double d,
double pr,
double len,
double speedSnd)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |