Skip navigation links
A C D E G H L M N P Q R S T U V X Y Z 

A

Angle - Class in physics
Angle is an immutable abstract data type which represents the mathematical notion of an angle.
Angle(double) - Constructor for class physics.Angle
Constructs an Angle with radians radians.
Angle(double, double) - Constructor for class physics.Angle
 
angle() - Method in class physics.LineSegment
 
angle() - Method in class physics.Vect
 
applyReflectionCoeff(Vect, Vect, double) - Static method in class physics.Geometry
Accounts for the effects of inelastic collisions given the initial and resulting velocities of the collision assuming elasticity.
areFinite() - Method in class physics.Geometry.DoublePair
 

C

Circle - Class in physics
Circle is an immutable abstract data type which models the mathematical notion of a circle in Cartesian space.
Circle(Vect, double) - Constructor for class physics.Circle
Creates a new circle with the specified size and location.
Circle(double, double, double) - Constructor for class physics.Circle
Creates a new circle with the specified size and location.
Circle(Point2D, double) - Constructor for class physics.Circle
Creates a new circle with the specified size and location.
compareTo(Angle) - Method in class physics.Angle
Compares this object with the specified object for order.
cos() - Method in class physics.Angle
 

D

d1 - Variable in class physics.Geometry.DoublePair
 
d2 - Variable in class physics.Geometry.DoublePair
 
DEG_135 - Static variable in class physics.Angle
A 135-degree angle
DEG_180 - Static variable in class physics.Angle
A 180-degree angle
DEG_225 - Static variable in class physics.Angle
A 225-degree angle
DEG_270 - Static variable in class physics.Angle
A 270-degree angle
DEG_315 - Static variable in class physics.Angle
A 315-degree angle
DEG_45 - Static variable in class physics.Angle
A 45-degree angle
DEG_90 - Static variable in class physics.Angle
A 90-degree angle
distanceSquared(Vect, Vect) - Static method in class physics.Geometry
 
distanceSquared(double, double, double, double) - Static method in class physics.Geometry
 
distanceSquared(Vect) - Method in class physics.Vect
 
dot(Vect) - Method in class physics.Vect
 
DOUBLE_PAIR_NAN - Static variable in class physics.Geometry
DoublePair with both d1 and d2 set to Double.NaN
DoublePair(double, double) - Constructor for class physics.Geometry.DoublePair
Creates a DoublePair with d1 and d2 as given
DoublePair(double) - Constructor for class physics.Geometry.DoublePair
Creates a DoublePair with d1 and d2 both set to the given argument

E

equals(Angle) - Method in class physics.Angle
 
equals(Object) - Method in class physics.Angle
 
equals(Circle) - Method in class physics.Circle
 
equals(Object) - Method in class physics.Circle
 
equals(Object) - Method in class physics.Geometry.DoublePair
 
equals(Geometry.DoublePair) - Method in class physics.Geometry.DoublePair
 
equals(Object) - Method in class physics.Geometry.VectPair
 
equals(Geometry.VectPair) - Method in class physics.Geometry.VectPair
 
equals(LineSegment) - Method in class physics.LineSegment
 
equals(Object) - Method in class physics.LineSegment
 
equals(Vect) - Method in class physics.Vect
 
equals(Object) - Method in class physics.Vect
 

G

Geometry - Class in physics
The Geometry library contains procedural abstractions which are useful in modeling the physical interactions between objects.
Geometry.DoublePair - Class in physics
DoublePair is a simple immutable type representing a pair of doubles.
Geometry.VectPair - Class in physics
VectPair is a simple immutable type representing a pair of Vects.
getCenter() - Method in class physics.Circle
 
getRadius() - Method in class physics.Circle
 

H

hashCode() - Method in class physics.Angle
 
hashCode() - Method in class physics.Circle
 
hashCode() - Method in class physics.Geometry.DoublePair
 
hashCode() - Method in class physics.Geometry.VectPair
 
hashCode() - Method in class physics.LineSegment
 
hashCode() - Method in class physics.Vect
 

L

length() - Method in class physics.LineSegment
 
length() - Method in class physics.Vect
 
LineSegment - Class in physics
LineSegment is an immutable abstract data type which represents a line segment in two dimensional Cartesian space.
LineSegment(Vect, Vect) - Constructor for class physics.LineSegment
 
LineSegment(Line2D) - Constructor for class physics.LineSegment
 
LineSegment(double, double, double, double) - Constructor for class physics.LineSegment
Constructs a new line segment from <x1, y1> to <x2, y2>.

M

minQuadraticSolution(double, double, double) - Static method in class physics.Geometry
Solves the quadratic equation.
minus(Angle) - Method in class physics.Angle
 
minus(Vect) - Method in class physics.Vect
 

N

neg() - Method in class physics.Vect
 

P

p1() - Method in class physics.LineSegment
 
p2() - Method in class physics.LineSegment
 
perpendicularPoint(LineSegment, Vect) - Static method in class physics.Geometry
Returns the point on line which forms a line with point that is perpendicular to line.
perpendicularPointWholeLine(LineSegment, Vect) - Static method in class physics.Geometry
Returns the point on the infinitely long line represented by line which forms a line with point that is perpendicular to line.
physics - package physics
 
plus(Angle) - Method in class physics.Angle
 
plus(Vect) - Method in class physics.Vect
 
projectOn(Vect) - Method in class physics.Vect
Returns the projection of this onto the unit vector b

Q

quadraticSolution(double, double, double) - Static method in class physics.Geometry
Solves the quadratic equation.

R

RAD_PI - Static variable in class physics.Angle
An angle of pi radians
RAD_PI_OVER_FOUR - Static variable in class physics.Angle
An angle of pi/4 radians
RAD_PI_OVER_TWO - Static variable in class physics.Angle
An angle of pi/2 radians
radians() - Method in class physics.Angle
 
reflectBalls(Vect, double, Vect, Vect, double, Vect) - Static method in class physics.Geometry
Computes the resulting velocities of two balls which collide.
reflectCircle(Vect, Vect, Vect, double) - Static method in class physics.Geometry
Computes the new velocity of a ball reflecting off of a circle.
reflectCircle(Vect, Vect, Vect) - Static method in class physics.Geometry
Computes the new velocity of a ball reflecting off of a circle.
reflectRotatingCircle(Circle, Vect, double, Circle, Vect) - Static method in class physics.Geometry
Computes the new velocity of a ball reflected off of a rotating circle.
reflectRotatingCircle(Circle, Vect, double, Circle, Vect, double) - Static method in class physics.Geometry
Computes the new velocity of a ball reflected off of a rotating circle.
reflectRotatingWall(LineSegment, Vect, double, Circle, Vect) - Static method in class physics.Geometry
Computes the new velocity of a ball reflecting off of a wall which is rotating about a point with constant angular velocity.
reflectRotatingWall(LineSegment, Vect, double, Circle, Vect, double) - Static method in class physics.Geometry
Computes the new velocity of a ball reflecting off of a wall which is rotating about a point with constant angular velocity.
reflectWall(LineSegment, Vect, double) - Static method in class physics.Geometry
Computes the new velocity of a ball after bouncing (reflecting) off a wall.
reflectWall(LineSegment, Vect) - Static method in class physics.Geometry
Computes the new velocity of a ball after bouncing (reflecting) off a wall.
rotateAround(Vect, Vect, Angle) - Static method in class physics.Geometry
Rotates the point represented by p by a around the center of rotation, cor, and returns the result.
rotateAround(LineSegment, Vect, Angle) - Static method in class physics.Geometry
Rotates the line segment represented by line by a around the center of rotation, cor, and returns the result.
rotateAround(Circle, Vect, Angle) - Static method in class physics.Geometry
Rotates the circle represented by circle by a around the center of rotation, cor, and returns the result.
rotateBy(Angle) - Method in class physics.Vect
 

S

setForesight(double) - Static method in class physics.Geometry
Modifies the behavior of this class to use the specified maximumForesight.
setTuningParameters(double, boolean, int) - Static method in class physics.Geometry
Modifies the behavior of this class to use the specified maximumForesight and numberOfSlices.
sin() - Method in class physics.Angle
 

T

tan() - Method in class physics.Angle
 
times(double) - Method in class physics.Vect
 
timeUntilBallBallCollision(Circle, Vect, Circle, Vect) - Static method in class physics.Geometry
Computes the time until two balls collide.
timeUntilCircleCollision(Circle, Circle, Vect) - Static method in class physics.Geometry
Computes the time until a ball represented by a circle, traveling at a specified velocity collides with a specified circle.
timeUntilCircleCollision(Circle, Vect, Vect) - Static method in class physics.Geometry
Computes the times when the point moving along the given trajectory will intersect the given circle
timeUntilRotatingCircleCollision(Circle, Vect, double, Circle, Vect) - Static method in class physics.Geometry
Computes the time until a ball traveling at a specified velocity collides with a rotating circle.
timeUntilRotatingWallCollision(LineSegment, Vect, double, Circle, Vect) - Static method in class physics.Geometry
Computes the time until a ball traveling at a specified velocity collides with a rotating line segment.
timeUntilWallCollision(LineSegment, Circle, Vect) - Static method in class physics.Geometry
Computes the time until a ball, represented by a circle, traveling at a specified velocity collides with a specified line segment.
toEllipse2D() - Method in class physics.Circle
 
toLine2D() - Method in class physics.LineSegment
 
toPoint2D() - Method in class physics.Vect
 
toString() - Method in class physics.Angle
 
toString() - Method in class physics.Circle
 
toString() - Method in class physics.Geometry.DoublePair
 
toString() - Method in class physics.Geometry.VectPair
 
toString() - Method in class physics.LineSegment
 
toString() - Method in class physics.Vect
 

U

unitSize() - Method in class physics.Vect
 

V

v1 - Variable in class physics.Geometry.VectPair
 
v2 - Variable in class physics.Geometry.VectPair
 
Vect - Class in physics
Vect is an immutable abstract data type which models the mathematical notion of a vector or a point in 2-space.
Vect(Angle) - Constructor for class physics.Vect
 
Vect(Angle, double) - Constructor for class physics.Vect
 
Vect(double, double) - Constructor for class physics.Vect
Constructs a new vector in Cartesian space with coordinates (x,y).
Vect(Point2D) - Constructor for class physics.Vect
 
VectPair(Vect, Vect) - Constructor for class physics.Geometry.VectPair
Creates a VectPair with v1 and v2 as given

X

x() - Method in class physics.Vect
 
X_HAT - Static variable in class physics.Vect
A unit vector in the positive x direction

Y

y() - Method in class physics.Vect
 
Y_HAT - Static variable in class physics.Vect
A unit vector in the positive y direction

Z

ZERO - Static variable in class physics.Angle
A zero-degree or zero-radian angle
ZERO - Static variable in class physics.Vect
A Vect with zero length
A C D E G H L M N P Q R S T U V X Y Z 
Skip navigation links