|
HTM Index 1.0![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jhu.htmIndex.SpatialSign | +--jhu.htmIndex.SpatialConstraint
Spatial Constraint class The Constraint is really a cone on the sky-sphere. It is characterized by its direction a_, the opening angle s_ and its cosine -- the distance of the plane intersecting the sphere and the sphere center. If d_ = 0, we have a half-sphere. If it is negative, we have a 'hole' i.e. the room angle is larger than 90degrees. Example: positive distance
. ____ . --- --- . / /|\ . / / |=\ . | / |==| this side is in the convex. . | /\s |===| . |------------|---| -> direction a . | \ |===| . | \ |==| . \ \ |=/ . \ \|/ . ---____--- . . . <-d-> is positive (s < 90)Example: negative distance
. ____ . ---====--- . this side is /========/|\ . in the /========/=| \ . convex |==== s__/==| | . |===== / /===| | . dir. a <- |------------|---| 'hole' in the sphere . |========\===| | . |========\==| | . \========\=| / . \========\|/ . ---____--- . . . <-d-> is negative (s > 90)for d=0 we have a half-sphere. Combining such, we get triangles, rectangles etc on the sphere surface (pure ZERO convexes)
Fields inherited from class jhu.htmIndex.SpatialSign |
mIXED,
nEG,
pOS,
sign_,
zERO |
Constructor Summary | |
SpatialConstraint()
Default Constructor |
|
SpatialConstraint(double distance)
Construct by setting only the distance |
|
SpatialConstraint(double x,
double y,
double z,
double distance)
Initialization constructor |
|
SpatialConstraint(SpatialConstraint copy)
Copy constructor |
|
SpatialConstraint(SpatialVector vector,
double distance)
Initialization constructor |
Method Summary | |
boolean |
contains(SpatialVector vector)
check whether a vector is inside this constraint |
double |
d()
give back distance |
void |
invert()
Invert a constraint |
void |
read(java.io.Reader in)
read from a stream as X Y Z D |
void |
readRaDec(java.io.Reader in)
read from a stream as RA DEC D |
java.lang.String |
toString()
convert data to string |
SpatialVector |
v()
give back constraint direction |
Methods inherited from class jhu.htmIndex.SpatialSign |
printSign |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SpatialConstraint()
public SpatialConstraint(double distance)
distance
- set the distance to the cappublic SpatialConstraint(SpatialVector vector, double distance)
vector
- SpatialVector specifying the direction of the capdistance
- The distance of the cutting plane from the originpublic SpatialConstraint(double x, double y, double z, double distance)
x
- x-direction of vector specifying the direction of the capy
- y-direction of vector specifying the direction of the capz
- z-direction of vector specifying the direction of the capdistance
- The distance of the cutting plane from the originpublic SpatialConstraint(SpatialConstraint copy)
constraint
- The constraint to be copiedMethod Detail |
public void invert()
public boolean contains(SpatialVector vector)
vector
- SpatialVector to be checkedpublic SpatialVector v()
public double d()
public java.lang.String toString()
public void read(java.io.Reader in) throws java.io.IOException
in
- takes a Reader (an input stream)Reader
public void readRaDec(java.io.Reader in) throws java.io.IOException
|
HTM Index 1.0![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |