|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Vect | |
|---|---|
| gizmoball.board | |
| gizmoball.shape | |
| physics | |
| Uses of Vect in gizmoball.board |
|---|
| Methods in gizmoball.board that return Vect | |
|---|---|
Vect |
RotatingGizmo.getCenterOfRotation()
returns the center of rotation of the gizmo. |
Vect |
ExtenderGizmo.getUpperLeft()
returns the location of the upper left corner of the square (the upper-left point of the extender's shape at its smallest size). |
Vect |
Ball.getVelocity()
returns the velocity of the ball. |
Vect |
ExtenderGizmo.getVelocity(Circle c)
returns the velocity of one of the vertices of the extender. |
Vect |
ExtenderGizmo.getVelocity(LineSegment ls)
returns the velocity of one of the sides of the extender. |
| Methods in gizmoball.board with parameters of type Vect | |
|---|---|
Absorber |
GizmoBoard.addAbsorber(java.lang.String name,
java.awt.Color color,
Vect upperLeftCorner,
double height,
double width,
Vect launchVelocity)
adds an absorber to the board. |
Ball |
GizmoBoard.addBall(java.lang.String name,
java.awt.Color color,
Vect center,
Vect velocity,
double radius)
adds a ball to the board |
ExtenderGizmo |
GizmoBoard.addExtender(java.lang.String name,
java.awt.Color color,
Vect upperLeft,
double squareLength,
double xSpanOfMotion,
double ySpanOfMotion,
double velocity,
double pausingTime)
|
Ball |
GizmoBoard.addGhostBall(java.lang.String name,
java.awt.Color color,
Vect center,
Vect velocity,
double radius)
adds a ghost ball to the board. |
RotatingGizmo |
GizmoBoard.addLeftFlipper(java.lang.String name,
java.awt.Color color,
Vect topCenter,
double distanceBetweenCenters,
double radius)
adds a left flipper to the board. |
RotatingGizmo |
GizmoBoard.addLeftFlipper(java.lang.String name,
java.awt.Color color,
Vect topCenter,
double distanceBetweenCenters,
double radius,
Angle currentAngle)
adds a left flipper to the board. |
RotatingGizmo |
GizmoBoard.addRightFlipper(java.lang.String name,
java.awt.Color color,
Vect topCenter,
double distanceBetweenCenter,
double radius)
adds a right flipper to the board. |
RotatingGizmo |
GizmoBoard.addRightFlipper(java.lang.String name,
java.awt.Color color,
Vect topCenter,
double distanceBetweenCenters,
double radius,
Angle currentAngle)
adds a right flipper to the board. |
java.lang.Boolean |
GizmoBoard.canAddAbsorber(Vect upperLeftCorner,
double height,
double width)
checks if an absorber with the given properties can be added to the board. |
boolean |
GizmoBoard.canAddBall(double radius,
Vect center)
checks if a ball with the given center and radius can be added to the board. |
java.lang.Boolean |
GizmoBoard.canAddExtender(Vect upperLeft,
double squareLength,
double xSpanOfMotion,
double ySpanOfMotion)
checks if an extender with the given properties can be added to the baord. |
boolean |
GizmoBoard.canAddGhostBall(double radius,
Vect center)
checks if a ghost ball with the given center and radius can be added to the board. |
boolean |
GizmoBoard.canAddLeftFlipper(Vect topCenter,
double distanceBetweenCenters,
double radius)
checks if a left flipper with the given properties can be added to the board. |
boolean |
GizmoBoard.canAddLeftFlipper(Vect topCenter,
double distanceBetweenCenters,
double radius,
Angle currentAngle)
checks if a left flipper with the given properties can be added to the board. |
boolean |
GizmoBoard.canAddRightFlipper(Vect topCenter,
double distanceBetweenCenters,
double radius)
checks if a right flipper with the given properties can be added to the board. |
boolean |
GizmoBoard.canAddRightFlipper(Vect topCenter,
double distanceBetweenCenters,
double radius,
Angle currentAngle)
checks if a right flipper with the given properties can be added to the board. |
boolean |
GizmoBoard.canMoveGizmo(Gizmo g,
Vect vector)
|
boolean |
GizmoBoard.canRotateGizmo(Gizmo g,
Angle angle,
Vect centerOfRotation)
checks if the given gizmo can rotate by the given angle and around the given center of rotation. |
void |
Ball.changeCenter(Vect loc)
moves the center of the ball to a new location. |
java.util.List<Gizmo> |
GizmoBoard.getGizmoAt(Vect pt)
returns a list of gizmos that are at the location specified. |
boolean |
GizmoBoard.moveGizmo(Gizmo g,
Vect vector)
|
void |
GizmoBoard.RotateGizmo(Gizmo g,
Angle angle,
Vect centerOfRotation)
|
void |
Ball.setVelocity(Vect v)
sets the velocity of the ball. |
| Constructors in gizmoball.board with parameters of type Vect | |
|---|---|
Absorber(java.lang.String name,
java.awt.Color color,
Polygon poly,
Vect launchVelocity,
GizmoBoard board)
Constructs a new Absorber gizmo. |
|
Ball(java.lang.String name,
java.awt.Color color,
double radius,
Vect initialLocation,
Vect velocity,
boolean inAbsorber,
boolean ghostBall)
constructs a Ball object. |
|
ExtenderGizmo(java.lang.String name,
java.awt.Color color,
Vect upperLeft,
double squareLength,
double xSpanOfMotion,
double ySpanOfMotion,
double velocity,
double pausingTime,
java.lang.Boolean isStationary)
constructs a new ExtenderGizmo object. |
|
RotatingGizmo(java.lang.String name,
java.awt.Color color,
Shape shape,
double rotatingVel,
double currentRotVel,
Polygon enclosingPoly,
Vect centerOfRotation,
Angle maxAngle,
Angle currentAngle)
Constructs a RotatingGizmo object |
|
| Uses of Vect in gizmoball.shape |
|---|
| Methods in gizmoball.shape that return Vect | |
|---|---|
Vect |
Circle09.getCenter()
|
Vect |
FlipperShape.getCenter1()
|
Vect |
FlipperShape.getCenter2()
|
Vect |
UnionShape.maxXY()
Returns the maximum coordinates of a bounding rectangle of the shape |
Vect |
Shape.maxXY()
|
Vect |
Polygon.maxXY()
Returns the maximum coordinates for a bounding rectangle of the polygon. |
Vect |
Circle09.maxXY()
Returns the maximum coordinates for a bounding rectangle around the circle |
static Vect |
ShapeGeometry.midPoint(LineSegment s)
|
Vect |
UnionShape.minXY()
Returns the minimum coordinates for a bounding rectangle of the shape |
Vect |
Shape.minXY()
|
Vect |
Polygon.minXY()
Returns the minimum coordinates for a bounding rectangle of the polygon. |
Vect |
Circle09.minXY()
Returns the minimum coordinates for a bounding rectangle around the circle |
| Methods in gizmoball.shape that return types with arguments of type Vect | |
|---|---|
java.util.List<Vect> |
FlipperShape.getRectVertices()
|
java.util.List<Vect> |
Polygon.getVertices()
|
| Methods in gizmoball.shape with parameters of type Vect | |
|---|---|
boolean |
UnionShape.containsPoint(Vect pt)
returns true iff shape contains specified point |
boolean |
Shape.containsPoint(Vect pt)
|
boolean |
Polygon.containsPoint(Vect pt)
Returns true iff the specified point is in the interior of the polygon. |
boolean |
Circle09.containsPoint(Vect pt)
|
static boolean |
ShapeGeometry.lineSegmentContainsPoint(LineSegment s,
Vect v)
|
static Polygon |
Polygon.makeRectangle(Vect upperLeft,
double width,
double height)
makes a rectangle at the specified location with the specified length and width |
static Polygon |
Polygon.makeRightTriangle45(Vect upperLeft,
double length)
Constructs a 45-45-90 triangle with the right angle in the bottom left |
static Polygon |
Polygon.makeSquare(Vect upperLeft,
double length)
Returns a polygon that is a square whose upperleft corner is specified by upperLeft and whose side lengths are specified by length |
UnionShape |
UnionShape.rotate(Angle theta,
Vect centerOfRotation)
returns a new UnionShape rotated by specified angle around center of rotation |
Shape |
Shape.rotate(Angle theta,
Vect centerOfRotation)
This method rotates a shape around an arbitrary point and returns the new shape |
Polygon |
Polygon.rotate(Angle theta,
Vect centerOfRotation)
Rotates the polygon by an Angle theta around an arbitrary point centerOfRotation and returns the new Polygon object |
FlipperShape |
FlipperShape.rotate(Angle theta,
Vect centerOfRotation)
Rotates shape around Angle theta and center of rotation and returns the new shape |
Circle09 |
Circle09.rotate(Angle theta,
Vect centerOfRotation)
rotates the circle by angle theta about a point and returns the new circle |
UnionShape |
UnionShape.translate(Vect v)
returns a new UnionShape translated by specified vector. |
Shape |
Shape.translate(Vect v)
This method translates a shape by an arbitrary vector and returns the new shape |
Polygon |
Polygon.translate(Vect v)
Translates the polygon by a Vect v and returns the new polygon object |
FlipperShape |
FlipperShape.translate(Vect v)
Translates shape by vector v and returns new shape |
Circle09 |
Circle09.translate(Vect v)
translates the circle by vector v and returns the new circle |
| Method parameters in gizmoball.shape with type arguments of type Vect | |
|---|---|
static boolean |
Polygon.canCreatePoly(java.util.List<Vect> vertexList)
|
| Constructors in gizmoball.shape with parameters of type Vect | |
|---|---|
Circle09(Vect center,
double r)
Constructs a circle given center vector and positive radius |
|
FlipperShape(Vect center1,
Vect center2,
double radius)
Constructer for FlipperShape |
|
| Constructor parameters in gizmoball.shape with type arguments of type Vect | |
|---|---|
Polygon(java.util.List<Vect> vertexList)
Constructor for polygon taking a list of vertices as input. |
|
| Uses of Vect in physics |
|---|
| Fields in physics declared as Vect | |
|---|---|
Vect |
Geometry.VectPair.v1
|
Vect |
Geometry.VectPair.v2
|
static Vect |
Vect.X_HAT
A unit vector in the positive x direction |
static Vect |
Vect.Y_HAT
A unit vector in the positive y direction |
static Vect |
Vect.ZERO
A Vect with zero length |
| Methods in physics that return Vect | |
|---|---|
Vect |
GeometryInterface.applyReflectionCoeff(Vect incidentVect,
Vect reflectedVect,
double rCoeff)
Specified by Geometry.applyReflectionCoeff |
Vect |
GeometryImpl.applyReflectionCoeff(Vect incidentVect,
Vect reflectedVect,
double rCoeff)
|
Vect |
GeometryCompare.applyReflectionCoeff(Vect incidentVect,
Vect reflectedVect,
double rCoeff)
|
static Vect |
Geometry.applyReflectionCoeff(Vect incidentVect,
Vect reflectedVect,
double rCoeff)
Accounts for the effects of inelastic collisions given the intial and resulting velocities of the collision assuming elasticity. |
Vect |
Circle.getCenter()
|
Vect |
Vect.minus(Vect b)
|
Vect |
Vect.neg()
|
Vect |
LineSegment.p1()
|
Vect |
LineSegment.p2()
|
Vect |
GeometryInterface.perpendicularPoint(LineSegment line,
Vect point)
Specified by Geometry.perpendicularPoint |
Vect |
GeometryImpl.perpendicularPoint(LineSegment line,
Vect point)
|
Vect |
GeometryCompare.perpendicularPoint(LineSegment line,
Vect point)
|
static Vect |
Geometry.perpendicularPoint(LineSegment line,
Vect point)
Returns the point on line which forms a line with
point that is perpendicular to line. |
Vect |
GeometryInterface.perpendicularPointWholeLine(LineSegment line,
Vect point)
Specified by Geometry.perpendicularPointWholeLine |
Vect |
GeometryImpl.perpendicularPointWholeLine(LineSegment line,
Vect point)
|
Vect |
GeometryCompare.perpendicularPointWholeLine(LineSegment line,
Vect point)
|
static Vect |
Geometry.perpendicularPointWholeLine(LineSegment line,
Vect point)
Returns the point on the infinitly long line represented by line which forms a line with point that
is perpendicular to line. |
Vect |
Vect.plus(Vect b)
|
Vect |
Vect.projectOn(Vect b)
Returns the projection of this onto b![]() |
Vect |
GeometryInterface.reflectCircle(Vect circle,
Vect ball,
Vect velocity)
Specified by Geometry.reflectCircle |
Vect |
GeometryImpl.reflectCircle(Vect circle,
Vect ball,
Vect velocity)
|
Vect |
GeometryCompare.reflectCircle(Vect circle,
Vect ball,
Vect velocity)
|
static Vect |
Geometry.reflectCircle(Vect circle,
Vect ball,
Vect velocity)
Computes the new velocity of a ball reflecting off of a circle. |
Vect |
GeometryInterface.reflectCircle(Vect circle,
Vect ball,
Vect velocity,
double reflectionCoeff)
Specified by Geometry.reflectCircle |
Vect |
GeometryImpl.reflectCircle(Vect circle,
Vect ball,
Vect velocity,
double reflectionCoeff)
|
Vect |
GeometryCompare.reflectCircle(Vect circle,
Vect ball,
Vect velocity,
double reflectionCoeff)
|
static Vect |
Geometry.reflectCircle(Vect circle,
Vect ball,
Vect velocity,
double reflectionCoeff)
Computes the new velocity of a ball reflecting off of a circle. |
Vect |
GeometryInterface.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Specified by Geometry.reflectRotatingCircle |
Vect |
GeometryImpl.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
Vect |
GeometryCompare.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
static Vect |
Geometry.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Computes the new velocity of a ball reflected off of a rotating circle. |
Vect |
GeometryInterface.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
Specified by Geometry.reflectRotatingCircle |
Vect |
GeometryImpl.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
|
Vect |
GeometryCompare.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
|
static Vect |
Geometry.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
Computes the new velocity of a ball reflected off of a rotating circle. |
Vect |
GeometryInterface.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Specified by Geometry.reflectRotatingWall |
Vect |
GeometryImpl.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
Vect |
GeometryCompare.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
static Vect |
Geometry.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Computes the new velocity of a ball reflecting off of a wall which is rotating about a point with constant angular velocity. |
Vect |
GeometryInterface.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
Specified by Geometry.reflectRotatingWall |
Vect |
GeometryImpl.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
|
Vect |
GeometryCompare.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
|
static Vect |
Geometry.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
Computes the new velocity of a ball reflecting off of a wall which is rotating about a point with constant angular velocity. |
Vect |
GeometryInterface.reflectWall(LineSegment line,
Vect velocity)
Specified by Geometry.reflectWall |
Vect |
GeometryImpl.reflectWall(LineSegment line,
Vect velocity)
|
Vect |
GeometryCompare.reflectWall(LineSegment line,
Vect velocity)
|
static Vect |
Geometry.reflectWall(LineSegment line,
Vect velocity)
Computes the new velocity of a ball after bouncing (reflecting) off a wall. |
Vect |
GeometryInterface.reflectWall(LineSegment line,
Vect velocity,
double reflectionCoeff)
Specified by Geometry.reflectWall |
Vect |
GeometryImpl.reflectWall(LineSegment line,
Vect velocity,
double reflectionCoeff)
|
Vect |
GeometryCompare.reflectWall(LineSegment line,
Vect velocity,
double reflectionCoeff)
|
static Vect |
Geometry.reflectWall(LineSegment line,
Vect velocity,
double reflectionCoeff)
Computes the new velocity of a ball after bouncing (reflecting) off a wall. |
Vect |
GeometryInterface.rotateAround(Vect point,
Vect cor,
Angle a)
Specified by Geometry.rotateAround |
Vect |
GeometryImpl.rotateAround(Vect point,
Vect cor,
Angle a)
|
Vect |
GeometryCompare.rotateAround(Vect point,
Vect cor,
Angle a)
|
static Vect |
Geometry.rotateAround(Vect point,
Vect cor,
Angle a)
Rotates the point represented by p by
a around the center of rotation, cor,
and returns the result. |
Vect |
Vect.rotateBy(Angle a)
|
Vect |
Vect.times(double amt)
|
Vect |
Vect.unitSize()
|
| Methods in physics with parameters of type Vect | |
|---|---|
Vect |
GeometryInterface.applyReflectionCoeff(Vect incidentVect,
Vect reflectedVect,
double rCoeff)
Specified by Geometry.applyReflectionCoeff |
Vect |
GeometryImpl.applyReflectionCoeff(Vect incidentVect,
Vect reflectedVect,
double rCoeff)
|
Vect |
GeometryCompare.applyReflectionCoeff(Vect incidentVect,
Vect reflectedVect,
double rCoeff)
|
static Vect |
Geometry.applyReflectionCoeff(Vect incidentVect,
Vect reflectedVect,
double rCoeff)
Accounts for the effects of inelastic collisions given the intial and resulting velocities of the collision assuming elasticity. |
double |
Vect.distanceSquared(Vect b)
|
double |
GeometryInterface.distanceSquared(Vect v1,
Vect v2)
Specified by Geometry.distanceSquared |
double |
GeometryImpl.distanceSquared(Vect v1,
Vect v2)
|
double |
GeometryCompare.distanceSquared(Vect v1,
Vect v2)
|
static double |
Geometry.distanceSquared(Vect v1,
Vect v2)
|
double |
Vect.dot(Vect b)
|
boolean |
Vect.equals(Vect v)
|
Vect |
Vect.minus(Vect b)
|
Vect |
GeometryInterface.perpendicularPoint(LineSegment line,
Vect point)
Specified by Geometry.perpendicularPoint |
Vect |
GeometryImpl.perpendicularPoint(LineSegment line,
Vect point)
|
Vect |
GeometryCompare.perpendicularPoint(LineSegment line,
Vect point)
|
static Vect |
Geometry.perpendicularPoint(LineSegment line,
Vect point)
Returns the point on line which forms a line with
point that is perpendicular to line. |
Vect |
GeometryInterface.perpendicularPointWholeLine(LineSegment line,
Vect point)
Specified by Geometry.perpendicularPointWholeLine |
Vect |
GeometryImpl.perpendicularPointWholeLine(LineSegment line,
Vect point)
|
Vect |
GeometryCompare.perpendicularPointWholeLine(LineSegment line,
Vect point)
|
static Vect |
Geometry.perpendicularPointWholeLine(LineSegment line,
Vect point)
Returns the point on the infinitly long line represented by line which forms a line with point that
is perpendicular to line. |
Vect |
Vect.plus(Vect b)
|
Vect |
Vect.projectOn(Vect b)
Returns the projection of this onto b![]() |
Geometry.VectPair |
GeometryInterface.reflectBalls(Vect center1,
double mass1,
Vect velocity1,
Vect center2,
double mass2,
Vect velocity2)
Specified by Geometry.reflectBalls |
Geometry.VectPair |
GeometryImpl.reflectBalls(Vect center1,
double mass1,
Vect velocity1,
Vect center2,
double mass2,
Vect velocity2)
|
Geometry.VectPair |
GeometryCompare.reflectBalls(Vect center1,
double mass1,
Vect velocity1,
Vect center2,
double mass2,
Vect velocity2)
|
static Geometry.VectPair |
Geometry.reflectBalls(Vect center1,
double mass1,
Vect velocity1,
Vect center2,
double mass2,
Vect velocity2)
Computes the resulting velocities of two balls which collide. |
Vect |
GeometryInterface.reflectCircle(Vect circle,
Vect ball,
Vect velocity)
Specified by Geometry.reflectCircle |
Vect |
GeometryImpl.reflectCircle(Vect circle,
Vect ball,
Vect velocity)
|
Vect |
GeometryCompare.reflectCircle(Vect circle,
Vect ball,
Vect velocity)
|
static Vect |
Geometry.reflectCircle(Vect circle,
Vect ball,
Vect velocity)
Computes the new velocity of a ball reflecting off of a circle. |
Vect |
GeometryInterface.reflectCircle(Vect circle,
Vect ball,
Vect velocity,
double reflectionCoeff)
Specified by Geometry.reflectCircle |
Vect |
GeometryImpl.reflectCircle(Vect circle,
Vect ball,
Vect velocity,
double reflectionCoeff)
|
Vect |
GeometryCompare.reflectCircle(Vect circle,
Vect ball,
Vect velocity,
double reflectionCoeff)
|
static Vect |
Geometry.reflectCircle(Vect circle,
Vect ball,
Vect velocity,
double reflectionCoeff)
Computes the new velocity of a ball reflecting off of a circle. |
Vect |
GeometryInterface.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Specified by Geometry.reflectRotatingCircle |
Vect |
GeometryImpl.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
Vect |
GeometryCompare.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
static Vect |
Geometry.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Computes the new velocity of a ball reflected off of a rotating circle. |
Vect |
GeometryInterface.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
Specified by Geometry.reflectRotatingCircle |
Vect |
GeometryImpl.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
|
Vect |
GeometryCompare.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
|
static Vect |
Geometry.reflectRotatingCircle(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
Computes the new velocity of a ball reflected off of a rotating circle. |
Vect |
GeometryInterface.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Specified by Geometry.reflectRotatingWall |
Vect |
GeometryImpl.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
Vect |
GeometryCompare.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
static Vect |
Geometry.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Computes the new velocity of a ball reflecting off of a wall which is rotating about a point with constant angular velocity. |
Vect |
GeometryInterface.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
Specified by Geometry.reflectRotatingWall |
Vect |
GeometryImpl.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
|
Vect |
GeometryCompare.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
|
static Vect |
Geometry.reflectRotatingWall(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity,
double reflectionCoeff)
Computes the new velocity of a ball reflecting off of a wall which is rotating about a point with constant angular velocity. |
Vect |
GeometryInterface.reflectWall(LineSegment line,
Vect velocity)
Specified by Geometry.reflectWall |
Vect |
GeometryImpl.reflectWall(LineSegment line,
Vect velocity)
|
Vect |
GeometryCompare.reflectWall(LineSegment line,
Vect velocity)
|
static Vect |
Geometry.reflectWall(LineSegment line,
Vect velocity)
Computes the new velocity of a ball after bouncing (reflecting) off a wall. |
Vect |
GeometryInterface.reflectWall(LineSegment line,
Vect velocity,
double reflectionCoeff)
Specified by Geometry.reflectWall |
Vect |
GeometryImpl.reflectWall(LineSegment line,
Vect velocity,
double reflectionCoeff)
|
Vect |
GeometryCompare.reflectWall(LineSegment line,
Vect velocity,
double reflectionCoeff)
|
static Vect |
Geometry.reflectWall(LineSegment line,
Vect velocity,
double reflectionCoeff)
Computes the new velocity of a ball after bouncing (reflecting) off a wall. |
protected IntervalList |
SimpleGeometry.restrictSearchInterval(IntervalList intervals,
double inner_radius,
double outer_radius,
double phi_1,
double phi_2,
double omega,
Vect center,
Circle ball,
Vect velocity)
|
protected IntervalList |
GeometryImpl.restrictSearchInterval(IntervalList intervals,
double inner_radius,
double outer_radius,
double phi_1,
double phi_2,
double omega,
Vect center,
Circle ball,
Vect velocity)
Given the path of a ball and the path of something rotating in a circle, restricts the possible time periods during which they might collide by doing some crazy confusing analysis originally concocted by Professor Ernst. |
Circle |
GeometryInterface.rotateAround(Circle circle,
Vect cor,
Angle a)
Specified by Geometry.rotateAround |
Circle |
GeometryImpl.rotateAround(Circle circle,
Vect cor,
Angle a)
|
Circle |
GeometryCompare.rotateAround(Circle circle,
Vect cor,
Angle a)
|
static Circle |
Geometry.rotateAround(Circle circle,
Vect cor,
Angle a)
Rotates the circle represented by circle by a around the center of
rotation, cor, and returns the result. |
LineSegment |
GeometryInterface.rotateAround(LineSegment line,
Vect cor,
Angle a)
Specified by Geometry.rotateAround |
LineSegment |
GeometryImpl.rotateAround(LineSegment line,
Vect cor,
Angle a)
|
LineSegment |
GeometryCompare.rotateAround(LineSegment line,
Vect cor,
Angle a)
|
static LineSegment |
Geometry.rotateAround(LineSegment line,
Vect cor,
Angle a)
Rotates the line segment represented by line by a around the center of
rotation, cor, and returns the result. |
Vect |
GeometryInterface.rotateAround(Vect point,
Vect cor,
Angle a)
Specified by Geometry.rotateAround |
Vect |
GeometryImpl.rotateAround(Vect point,
Vect cor,
Angle a)
|
Vect |
GeometryCompare.rotateAround(Vect point,
Vect cor,
Angle a)
|
static Vect |
Geometry.rotateAround(Vect point,
Vect cor,
Angle a)
Rotates the point represented by p by
a around the center of rotation, cor,
and returns the result. |
double |
GeometryInterface.timeUntilBallBallCollision(Circle ball1,
Vect vel1,
Circle ball2,
Vect vel2)
Specified by Geometry.timeUntilBallBallCollision |
double |
GeometryImpl.timeUntilBallBallCollision(Circle ball1,
Vect vel1,
Circle ball2,
Vect vel2)
|
double |
GeometryCompare.timeUntilBallBallCollision(Circle ball1,
Vect vel1,
Circle ball2,
Vect vel2)
|
static double |
Geometry.timeUntilBallBallCollision(Circle ball1,
Vect vel1,
Circle ball2,
Vect vel2)
Computes the time until two balls collide. |
double |
GeometryInterface.timeUntilCircleCollision(Circle circle,
Circle ball,
Vect velocity)
Specified by Geometry.timeUntilCircleCollision |
double |
GeometryImpl.timeUntilCircleCollision(Circle circle,
Circle ball,
Vect velocity)
|
double |
GeometryCompare.timeUntilCircleCollision(Circle circle,
Circle ball,
Vect velocity)
|
static double |
Geometry.timeUntilCircleCollision(Circle circle,
Circle ball,
Vect velocity)
Computes the time until a ball represented by a circle, travelling at a specified velocity collides with a specified circle. |
Geometry.DoublePair |
GeometryInterface.timeUntilCircleCollision(Circle circle,
Vect point,
Vect velocity)
Specified by Geometry.timeUntilCircleCollision |
Geometry.DoublePair |
GeometryImpl.timeUntilCircleCollision(Circle circle,
Vect point,
Vect velocity)
|
Geometry.DoublePair |
GeometryCompare.timeUntilCircleCollision(Circle circle,
Vect point,
Vect velocity)
|
static Geometry.DoublePair |
Geometry.timeUntilCircleCollision(Circle circle,
Vect point,
Vect velocity)
Computes the times when the point moving along the given trajectory will intersect the given circle |
double |
GeometryInterface.timeUntilRotatingCircleCollision(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Specified by Geometry.timeUntilRotatingCircleCollision |
double |
GeometryImpl.timeUntilRotatingCircleCollision(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
double |
GeometryCompare.timeUntilRotatingCircleCollision(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
static double |
Geometry.timeUntilRotatingCircleCollision(Circle circle,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Computes the time until a ball travelling at a specified velocity collides with a rotating circle. |
double |
GeometryInterface.timeUntilRotatingWallCollision(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Specified by Geometry.timeUntilRotatingWallCollision |
double |
GeometryImpl.timeUntilRotatingWallCollision(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
double |
GeometryCompare.timeUntilRotatingWallCollision(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
|
static double |
Geometry.timeUntilRotatingWallCollision(LineSegment line,
Vect center,
double angularVelocity,
Circle ball,
Vect velocity)
Computes the time until a ball travelling at a specified velocity collides with a rotating line segment. |
double |
GeometryInterface.timeUntilWallCollision(LineSegment line,
Circle ball,
Vect velocity)
Specified by Geometry.timeUntilWallCollision |
double |
GeometryImpl.timeUntilWallCollision(LineSegment line,
Circle ball,
Vect velocity)
|
double |
GeometryCompare.timeUntilWallCollision(LineSegment line,
Circle ball,
Vect velocity)
|
static double |
Geometry.timeUntilWallCollision(LineSegment line,
Circle ball,
Vect velocity)
Computes the time until a ball, represented by a circle, travelling at a specified velocity collides with a specified line segment. |
| Constructors in physics with parameters of type Vect | |
|---|---|
Circle(Vect center,
double r)
|
|
Geometry.VectPair(Vect v1,
Vect v2)
Creates a VectPair with v1 and
v2 as given |
|
LineSegment(Vect p1,
Vect p2)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||