|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgeometry.AffineSpace
geometry.Plane
geometry.CoordPlane
A plane which is parallel to two coordinate vectors. The methods for such a plane are much simpler than in the arbitrary case.
Field Summary | |
protected double |
scaling
1/length of the two base vectors |
protected int |
xCoord
The number of the first coordinate vector |
protected int |
yCoord
The number of the second coordinate vector |
Fields inherited from class geometry.AffineSpace |
origin, space |
Constructor Summary | |
CoordPlane(Point origin,
int xCoord,
int yCoord)
Constructs a new plane from a point and two unit coordinate vectors. |
|
CoordPlane(Point origin,
int xCoord,
int yCoord,
double scale)
Constructs a new plane from a point and two coordinate vectors of equal length. |
Method Summary | |
boolean |
contains(Point p)
|
double |
getScaling()
Returns 1/length of the two base vectors |
int |
getXCoord()
Returns the number of the first coordinate vector |
int |
getYCoord()
Returns the number of the second coordinate vector |
java.awt.geom.Point2D |
localProjection(Point p)
Returns the image of the specified point after projecting it orthogonally to the plane (in local coordinates). |
Methods inherited from class geometry.Plane |
getX, getY |
Methods inherited from class geometry.AffineSpace |
add, add, affineClosure, canBeContainedIn, canContain, canIntersect, contains, contains, copy, dim, getGenerator, getNormal, getOrigin, getRandomRay, intersection, isContainedIn, localization, localization, outerDim, print, project, toShape |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int xCoord
protected int yCoord
protected double scaling
Constructor Detail |
public CoordPlane(Point origin, int xCoord, int yCoord)
origin
- any point in the planepublic CoordPlane(Point origin, int xCoord, int yCoord, double scale)
origin
- any point in the planeMethod Detail |
public int getXCoord()
public int getYCoord()
public double getScaling()
public boolean contains(Point p)
public java.awt.geom.Point2D localProjection(Point p)
Plane
localProjection
in class Plane
p
- any point
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |