Uses of Class
vooga.physicsEngine.geometry.mathUtils.Vector2f

Packages that use Vector2f
testing.physicsEngine.guiTest   
vooga.physicsEngine   
vooga.physicsEngine.geometry   
vooga.physicsEngine.geometry.intersections   
vooga.physicsEngine.geometry.mathUtils   
vooga.physicsEngine.geometry.shapes   
 

Uses of Vector2f in testing.physicsEngine.guiTest
 

Methods in testing.physicsEngine.guiTest with parameters of type Vector2f
static void TestingUtilities.fillCircle(java.awt.Graphics2D g, Vector2f point, int radius, java.awt.Color color)
          Fill a given circle.
 

Method parameters in testing.physicsEngine.guiTest with type arguments of type Vector2f
static void TestingUtilities.drawPoints(java.awt.Graphics2D g, java.util.List<Vector2f> intersection)
           
 

Uses of Vector2f in vooga.physicsEngine
 

Methods in vooga.physicsEngine that return Vector2f
 Vector2f PhysicalParameters.getConstantAcceleration()
           
 Vector2f PhysicsEngine.getGravity()
           
 Vector2f Arbiter.getNormal()
           
 Vector2f GamePhysicalParameters.getPosition()
           
 Vector2f PhysicalParameters.getVelocity()
           
 

Methods in vooga.physicsEngine that return types with arguments of type Vector2f
 java.util.List<Vector2f> Arbiter.getPointsOfContact()
          Get the list of intersection points detected that define the Arbiter
 

Methods in vooga.physicsEngine with parameters of type Vector2f
 void PhysicalParameters.applyImpulse(Vector2f impulse)
          Apply an instantaneous impulse on the object
 void PhysicalItem.applyImpulse(Vector2f impulse)
          Apply an impulse on the object
 void GamePhysicalParameters.incrementPosition(Vector2f difference)
           
 void PhysicalParameters.incrementVelocity(Vector2f difference)
          Adds to the current velocity.
 void GamePhysicalParameters.setCentroidPosition(Vector2f position)
           
 void PhysicalParameters.setConstantAcceleration(Vector2f constantAcceleration)
          Apply a constant acceleration on the object.
 void PhysicalParameters.setConstantForce(Vector2f constantForce)
           
 void PhysicalItem.setConstantForce(Vector2f constantForce)
          Sets a sustained force on the object (i.e.
 void PhysicsEngine.setGravity(Vector2f acceleration)
          Set the gravity of the physics engine (for example, use setGlobalForce(new Vector2f(0,-9.8)) to set g=9.8, pointed down.) This is a constant force that is applied to all moveable bodies.
 void PhysicalItem.setPosition(Vector2f position)
          Set the game position of an object.
 void GamePhysicalParameters.setPosition(Vector2f position)
           
 void PhysicalParameters.setVelocity(Vector2f velocity)
           
 

Constructors in vooga.physicsEngine with parameters of type Vector2f
Arbiter(PhysicalParameters bodyA, PhysicalParameters bodyB, java.util.List<Vector2f> pointsOfContact, Vector2f normalDirection)
          Create an arbiter (representing contact) between bodyA and bodyB at idealized contact point pointOfContact.
 

Constructor parameters in vooga.physicsEngine with type arguments of type Vector2f
Arbiter(PhysicalParameters bodyA, PhysicalParameters bodyB, java.util.List<Vector2f> pointsOfContact, Vector2f normalDirection)
          Create an arbiter (representing contact) between bodyA and bodyB at idealized contact point pointOfContact.
 

Uses of Vector2f in vooga.physicsEngine.geometry
 

Methods in vooga.physicsEngine.geometry that return Vector2f
 Vector2f GeometricParameters.getAbsoluteCoordinate(Vector2f relativeCoordinate)
           
 Vector2f GeometricParameters.getCentroidPosition()
           
 

Methods in vooga.physicsEngine.geometry with parameters of type Vector2f
 Vector2f GeometricParameters.getAbsoluteCoordinate(Vector2f relativeCoordinate)
           
 void GeometricParameters.incrementPosition(Vector2f difference)
           
 void GeometricParameters.setCentroidPosition(Vector2f position)
           
 

Constructors in vooga.physicsEngine.geometry with parameters of type Vector2f
GeometricParameters(Shape shape, Vector2f position)
          Creates a GeometricParameters object with given shape and position.
GeometricParameters(Shape shape, Vector2f position, double angularPosition)
          Creates a GeometricParameters object with given shape, position and angularPosition.
 

Uses of Vector2f in vooga.physicsEngine.geometry.intersections
 

Methods in vooga.physicsEngine.geometry.intersections that return types with arguments of type Vector2f
 java.util.List<Vector2f> PolygonPolygonIntersector.findIntersections()
           
 java.util.List<Vector2f> JavaShapeIntersector.findIntersections()
           
 java.util.List<Vector2f> Intersector.findIntersections()
          Returns a list of intersections between the two geometric entities that is passed to the Intersector in the constructor.
 java.util.List<Vector2f> CirclePolygonIntersector.findIntersections()
           
 java.util.List<Vector2f> CircleCircleIntersector.findIntersections()
           
 

Uses of Vector2f in vooga.physicsEngine.geometry.mathUtils
 

Fields in vooga.physicsEngine.geometry.mathUtils declared as Vector2f
 Vector2f Matrix2f.col1
          The first column of the matrix
 Vector2f Matrix2f.col2
          The second column of the matrix
 

Methods in vooga.physicsEngine.geometry.mathUtils that return Vector2f
 Vector2f Vector2f.add(Vector2f difference)
           
 Vector2f Vector2f.clone()
           
static Vector2f Vector2f.difference(Vector2f first, Vector2f second)
          Compute the vector difference first-second
static Vector2f Vector2f.fromPosition(Position position)
           
static Vector2f Vector2f.getRealCordinates(Vector2f relativeCoordinate, Vector2f centroid, double angularPosition)
          Obtain the real coordinate of some point given that the old coordinate has centroid is (0,0) and is unrotated.`
static Vector2f Vector2f.mean(java.util.List<Vector2f> points)
          Return the mean of the given vectors; returning (0,0) if the mean is empty
static Vector2f Vector2f.mult(Vector2f vector, double scalar)
          Return the scalar product of the vector and scalar
 Vector2f Matrix2f.multiply(Vector2f vec)
          Multiply this matrix with a given vector
 Vector2f Vector2f.normalise()
          Normalise the vector
static Vector2f Vector2f.normalize(Vector2f vec)
          Normalize the given vector without changing it.
 Vector2f Vector2f.reverse()
          Reverse this vector (no copying)
static Vector2f Vector2f.rotateBy90CCW(Vector2f vec)
          Return a new vector that is the given rotated by 90 degrees counterclockwise
static Vector2f Vector2f.rotateBy90CW(Vector2f vec)
          Return a new vector that is the given rotated by 90 degrees clockwise
 Vector2f Vector2f.scale(double a)
          Scale this vector by a value
 Vector2f Vector2f.sub(Vector2f v)
          Subtract a vector from this vector
static Vector2f Vector2f.sum(java.util.List<Vector2f> summands)
          Sum a list of vectors and return the result
static Vector2f Vector2f.sum(Vector2f a, Vector2f b)
          Find the sum of vectors a and b
 

Methods in vooga.physicsEngine.geometry.mathUtils that return types with arguments of type Vector2f
static java.util.List<Vector2f> LinearAlgebraOperations.compute2dPCA(java.util.List<Vector2f> points)
          Compute a 2 dimensional Principal Component Analysis, returning the first component then the second.
 

Methods in vooga.physicsEngine.geometry.mathUtils with parameters of type Vector2f
 Vector2f Vector2f.add(Vector2f difference)
           
 double Vector2f.cross(Vector2f vec)
          Computes the magnitude of the cross product with given vector.
static double Vector2f.cross(Vector2f a, Vector2f b)
          Return the magnitude of the cross product bewteen a and b (a.x*b.y-a.y*b.x)
static Vector2f Vector2f.difference(Vector2f first, Vector2f second)
          Compute the vector difference first-second
 double Vector2f.distance(Vector2f other)
          Get the distance from this point to another
 double Vector2f.distanceSquared(Vector2f other)
          Get the distance squared from this point to another
 double Vector2f.dot(Vector2f vec)
          Compute the dot product between a and b
static double Vector2f.dot(Vector2f a, Vector2f b)
          Returns the dot product of a and b.
 boolean Vector2f.equalsDelta(Vector2f other, double delta)
          Compare two vectors allowing for a (small) error as indicated by the delta.
static Vector2f Vector2f.getRealCordinates(Vector2f relativeCoordinate, Vector2f centroid, double angularPosition)
          Obtain the real coordinate of some point given that the old coordinate has centroid is (0,0) and is unrotated.`
static Vector2f Vector2f.mult(Vector2f vector, double scalar)
          Return the scalar product of the vector and scalar
 Vector2f Matrix2f.multiply(Vector2f vec)
          Multiply this matrix with a given vector
static Vector2f Vector2f.normalize(Vector2f vec)
          Normalize the given vector without changing it.
static Vector2f Vector2f.rotateBy90CCW(Vector2f vec)
          Return a new vector that is the given rotated by 90 degrees counterclockwise
static Vector2f Vector2f.rotateBy90CW(Vector2f vec)
          Return a new vector that is the given rotated by 90 degrees clockwise
 void Vector2f.set(Vector2f other)
          Set the value of this vector
 Vector2f Vector2f.sub(Vector2f v)
          Subtract a vector from this vector
static Vector2f Vector2f.sum(Vector2f a, Vector2f b)
          Find the sum of vectors a and b
static Position Vector2f.toPosition(Vector2f vector)
          Translates given Vector2f into a game engine Position object.
 

Method parameters in vooga.physicsEngine.geometry.mathUtils with type arguments of type Vector2f
static java.util.List<Vector2f> LinearAlgebraOperations.compute2dPCA(java.util.List<Vector2f> points)
          Compute a 2 dimensional Principal Component Analysis, returning the first component then the second.
static Vector2f Vector2f.mean(java.util.List<Vector2f> points)
          Return the mean of the given vectors; returning (0,0) if the mean is empty
static Vector2f Vector2f.sum(java.util.List<Vector2f> summands)
          Sum a list of vectors and return the result
 

Constructors in vooga.physicsEngine.geometry.mathUtils with parameters of type Vector2f
Matrix2f(Vector2f col1, Vector2f col2)
          Create a matrix
Vector2f(Vector2f other)
          Create a new vector based on another
 

Uses of Vector2f in vooga.physicsEngine.geometry.shapes
 

Methods in vooga.physicsEngine.geometry.shapes that return Vector2f
 Vector2f Shape.getCentroid()
           
 Vector2f Polygon.getCentroid()
           
 Vector2f JavaShape.getCentroid()
           
 Vector2f Circle.getCentroid()
           
 Vector2f Shape.getSmallestCorner()
           
 Vector2f Polygon.getSmallestCorner()
           
 Vector2f JavaShape.getSmallestCorner()
           
 Vector2f Circle.getSmallestCorner()
           
 Vector2f Polygon.getVertex(int x)
          Return the vector of the vertex at position x
 

Methods in vooga.physicsEngine.geometry.shapes that return types with arguments of type Vector2f
static java.util.List<Vector2f> ShapeUtilities.getBoundaryPoints(java.awt.Shape shape)
          Obtain the boundary points of a given java.awt.Shape object.
static java.util.List<Vector2f> ShapeUtilities.getBoundaryPoints(java.awt.Shape shape, double flatness)
          Given an Area object (probably as the result of an intersection), obtain the extremal points on the boundary.
 

Constructors in vooga.physicsEngine.geometry.shapes with parameters of type Vector2f
Polygon(Vector2f[] vertices)
          Create new Polygon using list of verticies; note that (0,0) will be the centroid.