|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Vector2D | |
|---|---|
| org.starhope.appius.geometry | |
| org.starhope.appius.physica | |
| org.starhope.appius.user | |
| Uses of Vector2D in org.starhope.appius.geometry |
|---|
| Methods in org.starhope.appius.geometry that return Vector2D | |
|---|---|
protected Vector2D |
Vector2D.newInstance(double x0,
double y0)
Creates a new instance of the coordinate pair for use by the abstract generic parent class to get around downcasting problems |
Vector2D |
Vector2D.normalize()
Returns a normalised version of the vector |
Vector2D |
Vector2D.scale(double magnitude)
Returns a new vector scaled by the magnitude given |
| Methods in org.starhope.appius.geometry with parameters of type Vector2D | |
|---|---|
double |
Vector2D.dot(Vector2D v2d)
Gets the dot product of the two vectors |
| Constructors in org.starhope.appius.geometry with parameters of type Vector2D | |
|---|---|
Vector2D(Vector2D v)
Creates a vector from an existing vector pair |
|
| Uses of Vector2D in org.starhope.appius.physica |
|---|
| Fields in org.starhope.appius.physica declared as Vector2D | |
|---|---|
private Vector2D |
CollisionObject.velocity
Object's velocity |
| Methods in org.starhope.appius.physica that return Vector2D | |
|---|---|
static Vector2D[] |
RigidBody.conserveMomentum(Vector2D myVelocity,
Vector2D otherVelocity,
double myMass,
double otherMass,
double cor)
Velocity change equation for conserving momentum between two objects |
static Vector2D |
RigidBody.findComponent(Vector2D incident,
Vector2D normal)
Finds the vector component of the incident vector in the normal vector |
Vector2D |
Collidable.getVelocity()
Gets the object's current velocity |
Vector2D |
CollisionObject.getVelocity()
|
static Vector2D |
RigidBody.Reflect(Vector2D incident,
Vector2D normal)
Reflects a vector around a normal |
| Methods in org.starhope.appius.physica with parameters of type Vector2D | |
|---|---|
static Vector2D[] |
RigidBody.conserveMomentum(Vector2D myVelocity,
Vector2D otherVelocity,
double myMass,
double otherMass,
double cor)
Velocity change equation for conserving momentum between two objects |
static Vector2D |
RigidBody.findComponent(Vector2D incident,
Vector2D normal)
Finds the vector component of the incident vector in the normal vector |
static Vector2D |
RigidBody.Reflect(Vector2D incident,
Vector2D normal)
Reflects a vector around a normal |
void |
Collidable.setVelocity(Vector2D velocity)
Sets the object's new velocity |
void |
CollisionObject.setVelocity(Vector2D newVelocity)
|
| Uses of Vector2D in org.starhope.appius.user |
|---|
| Methods in org.starhope.appius.user that return Vector2D | |
|---|---|
Vector2D |
GeneralUser.getVelocity()
|
| Methods in org.starhope.appius.user with parameters of type Vector2D | |
|---|---|
void |
GeneralUser.setVelocity(Vector2D velocity)
This method does nothing because we shouldn't be setting the speed and direction of users |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||