|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Vector2D in edu.eside.flingbox.bodies |
---|
Methods in edu.eside.flingbox.bodies that return Vector2D | |
---|---|
Vector2D[] |
Polygon.getPoints()
|
Methods in edu.eside.flingbox.bodies with parameters of type Vector2D | |
---|---|
void |
Polygon.onMovement(Vector2D position,
float rotation)
Called when movement occurs. |
void |
Polygon.setPoints(Vector2D[] points,
Vector2D centroid)
|
void |
Polygon.setPoints(Vector2D[] points,
Vector2D centroid)
|
Constructors in edu.eside.flingbox.bodies with parameters of type Vector2D | |
---|---|
Polygon(Vector2D[] polygonPoints)
Constructor for a Polygon |
Uses of Vector2D in edu.eside.flingbox.graphics |
---|
Methods in edu.eside.flingbox.graphics that return Vector2D | |
---|---|
Vector2D |
RenderCamera.getAperture()
|
Vector2D |
RenderCamera.getPosition()
|
Vector2D |
RenderCamera.project(Vector2D v)
|
Vector2D |
RenderCamera.scale(Vector2D v)
|
Methods in edu.eside.flingbox.graphics with parameters of type Vector2D | |
---|---|
Vector2D |
RenderCamera.project(Vector2D v)
|
Vector2D |
RenderCamera.scale(Vector2D v)
|
void |
RenderCamera.setAperture(Vector2D aperture)
Sets camera's aperture |
void |
RenderCamera.setPosition(Vector2D newPosition)
Sets Camera's position. |
void |
RenderPolygon.setPosition(Vector2D position,
float rotation)
Sets object's position to render |
Constructors in edu.eside.flingbox.graphics with parameters of type Vector2D | |
---|---|
RenderPolygon(Vector2D[] points)
Default constructor of PolygonRender. |
Uses of Vector2D in edu.eside.flingbox.math |
---|
Fields in edu.eside.flingbox.math declared as Vector2D | |
---|---|
Vector2D[] |
Intersect.contourA
Stores array with intersect contour of first polygon |
Vector2D[] |
Intersect.contourB
Stores array with intersect contour of second polygon |
Vector2D |
Intersect.ingoingPoint
Ingoing point, it's also in contour[0] |
Vector2D |
Intersect.outgoingPoint
Outgoing point, also in contour |
Vector2D[] |
Intersect.polygonA
Just pointer to recognize polygon side |
Vector2D[] |
Intersect.polygonB
Just pointer to recognize polygon side |
Methods in edu.eside.flingbox.math that return Vector2D | |
---|---|
Vector2D |
Vector2D.add(Vector2D v)
Adds a vector |
static Vector2D[] |
PolygonUtils.computePolygonNormals(Vector2D[] contour)
Computes the polygon's normals. |
static Vector2D[] |
PolygonUtils.douglasPeuckerReducer(Vector2D[] points,
float epsilon)
The Douglas-Peucker algorithm is an algorithm for reducing the number of points in a curve that is approximated by a series of points. |
Vector2D |
Vector2D.mul(float s)
Multiplies by a scalar |
Vector2D |
Vector2D.mul(Matrix22 m)
Multiplies current vector by a matrix |
static Vector2D |
Vector2D.mul(Vector2D v,
Matrix22 m)
Multiplies a vector by a matrix |
Vector2D |
Vector2D.negate()
Negates current vector |
static Vector2D |
Vector2D.negate(Vector2D v)
Negates current vector |
Vector2D |
Vector2D.normalize()
Normalizes the vector |
Vector2D |
Vector2D.normalVector()
Computes the vector's normal |
static Vector2D |
Vector2D.normalVector(Vector2D v)
Computes the vector's normal |
static Vector2D |
PolygonUtils.polygonCentroid(Vector2D[] contour)
Computes the polygon's centroid |
Vector2D |
Vector2D.set(float i,
float j)
Sets vector's values |
Vector2D |
Vector2D.set(Vector2D v)
Copies values from other vector |
Vector2D |
Vector2D.sub(Vector2D v)
Subs a vector |
Methods in edu.eside.flingbox.math with parameters of type Vector2D | |
---|---|
Vector2D |
Vector2D.add(Vector2D v)
Adds a vector |
float |
Vector2D.angleWithVector(Vector2D v)
Computes angle formed by current vector and a given vector. |
static Vector2D[] |
PolygonUtils.computePolygonNormals(Vector2D[] contour)
Computes the polygon's normals. |
float |
Vector2D.crossProduct(Vector2D v)
Computes the Z axis of the cross product |
static float |
PolygonUtils.distanceFromLineToPoint(Vector2D p0,
Vector2D p1,
Vector2D p)
Computes minimum distance from line to point |
float |
Vector2D.distanceToPoint(Vector2D p)
Calculates the distance to a given point |
float |
Vector2D.dotProduct(Vector2D v)
Computes the dot product |
static Vector2D[] |
PolygonUtils.douglasPeuckerReducer(Vector2D[] points,
float epsilon)
The Douglas-Peucker algorithm is an algorithm for reducing the number of points in a curve that is approximated by a series of points. |
static Intersect[] |
Intersect.intersectPolygons(Vector2D[] polygonA,
Vector2D[] polygonB)
Computes all intersects between two polygons |
static Intersect[] |
Intersect.intersectPolygons(Vector2D[] polygonA,
Vector2D[] polygonB)
Computes all intersects between two polygons |
boolean |
Vector2D.isAtSameSide(Vector2D v)
computes the side of vector |
static Vector2D |
Vector2D.mul(Vector2D v,
Matrix22 m)
Multiplies a vector by a matrix |
static Vector2D |
Vector2D.negate(Vector2D v)
Negates current vector |
static Vector2D |
Vector2D.normalVector(Vector2D v)
Computes the vector's normal |
static float |
PolygonUtils.polygonArea(Vector2D[] Vector2Ds)
Computes area of polygon. |
static Vector2D |
PolygonUtils.polygonCentroid(Vector2D[] contour)
Computes the polygon's centroid |
static boolean |
PolygonUtils.polygonConatinsPoint(Vector2D[] polygon,
Vector2D Vector2D)
Checks if a Vector2D is contained by a polygon. |
static boolean |
PolygonUtils.polygonConatinsPoint(Vector2D[] polygon,
Vector2D Vector2D)
Checks if a Vector2D is contained by a polygon. |
float |
Vector2D.projectOver(Vector2D v)
computes the length of projected vector |
Vector2D |
Vector2D.set(Vector2D v)
Copies values from other vector |
Vector2D |
Vector2D.sub(Vector2D v)
Subs a vector |
static short[] |
PolygonUtils.triangulatePolygon(Vector2D[] Vector2Ds)
Computes the triangulation of a polygon(tesellation) with ear-clipping algorithm. |
Constructors in edu.eside.flingbox.math with parameters of type Vector2D | |
---|---|
Vector2D(Vector2D v)
Copy constructor |
Uses of Vector2D in edu.eside.flingbox.physics |
---|
Methods in edu.eside.flingbox.physics that return Vector2D | |
---|---|
Vector2D |
PhysicBody.getVelocity()
|
Methods in edu.eside.flingbox.physics with parameters of type Vector2D | |
---|---|
void |
PhysicBody.applyImpulse(Vector2D impulse,
Vector2D applicationPoint)
Applies force to the object |
boolean |
PhysicPolygon.contains(Vector2D p)
Check if point is contained by the polygon |
void |
PhysicBody.OnMovementListener.onMovement(Vector2D position,
float angle)
Called when movement occurs. |
Constructors in edu.eside.flingbox.physics with parameters of type Vector2D | |
---|---|
PhysicPolygon(Vector2D[] points,
float bodyMass,
Vector2D position,
PhysicBody.OnMovementListener listener)
Constructor physics for default polygon. |
|
PhysicPolygon(Vector2D[] points,
float bodyMass,
Vector2D position,
PhysicBody.OnMovementListener listener)
Constructor physics for default polygon. |
Uses of Vector2D in edu.eside.flingbox.physics.collisions |
---|
Fields in edu.eside.flingbox.physics.collisions declared as Vector2D | |
---|---|
Vector2D |
Contact.normal
Contact's normal. |
Vector2D |
Contact.position
Contact's absolute position |
Vector2D |
Contact.sense
Contact's sense. |
Methods in edu.eside.flingbox.physics.collisions that return Vector2D | |
---|---|
Vector2D |
Contact.getBodysSide(PhysicBody body)
|
Vector2D |
Contact.getPosition()
|
Vector2D |
Collider.getPosition()
|
Vector2D |
Contact.getRelativeVelocity()
|
Methods in edu.eside.flingbox.physics.collisions with parameters of type Vector2D | |
---|---|
void |
Collider.onMovement(Vector2D newPosition,
float newAngle)
Called when a movement occurs |
Constructors in edu.eside.flingbox.physics.collisions with parameters of type Vector2D | |
---|---|
ColliderPolygon(Vector2D[] contour,
PhysicBody thisPhysic)
Default constructor for a polygon collider. |
|
Contact(PhysicBody bodyA,
PhysicBody bodyB,
Vector2D position,
Vector2D sense,
Intersect intersect)
Default constructor |
Uses of Vector2D in edu.eside.flingbox.physics.gravity |
---|
Subclasses of Vector2D in edu.eside.flingbox.physics.gravity | |
---|---|
class |
GravitySource
Gravity Source defines a gravity vector. |
Methods in edu.eside.flingbox.physics.gravity with parameters of type Vector2D | |
---|---|
static GravitySource |
GravitySource.getStaticGravity(Vector2D v)
|
Uses of Vector2D in edu.eside.flingbox.utils |
---|
Methods in edu.eside.flingbox.utils that return Vector2D | |
---|---|
Vector2D |
PositionComparator.Positionable.getPosition()
|
Methods in edu.eside.flingbox.utils with parameters of type Vector2D | |
---|---|
static void |
PositionComparator.setGroundSense(Vector2D sense)
Sets ground vector |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |