|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object backend.spheremodel.SphereIntrModel backend.spheremodel.SphereLineIntrModel
public class SphereLineIntrModel
SphereLineIntersectionModel models the internal details of an intersection
Constructor Summary | |
---|---|
SphereLineIntrModel(SphereLineModel line1,
SphereLineModel line2,
SphereWorldModel theWorld)
This is the main constructor for the SphereLineIntrModel and should be used for everything except when a sphere is being read in from a file where it is impossible to use this constructor |
|
SphereLineIntrModel(SphereModel theModel,
SphereLineModel line1,
SphereLineModel line2,
SpherePointModel p1,
SpherePointModel p2)
This constructor is ONLY meant to be used when reading a sphere in from a file because it does not do certain steps the normal constructor does . |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object checkMe)
|
SphereLineModel |
getLineOne()
getLineOne will get the first line of the intersection |
SphereLineModel |
getLineTwo()
getLineTwo will get the second line of intersection |
void |
update(java.util.Observable arg0,
java.lang.Object arg1)
|
Methods inherited from class backend.spheremodel.SphereIntrModel |
---|
equals, getFirstPoint, getFirstPointBase, getSecondPoint, getSecondPointBase |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SphereLineIntrModel(SphereLineModel line1, SphereLineModel line2, SphereWorldModel theWorld)
line1
- the first line of the intersectionline2
- the second line of the intersectiontheWorld
- is the SphereWolrdModel that this will be placed inpublic SphereLineIntrModel(SphereModel theModel, SphereLineModel line1, SphereLineModel line2, SpherePointModel p1, SpherePointModel p2)
theModel
- is the SphereModel that this should be concerned withline1
- is the first line of the intersectionline2
- is the second line of the intersectionp1
- is the first intersection point of the two lines. It is assumed
that this has been setup correctlyp2
- is the second intersection point, but can also be null if no
such intersection existsMethod Detail |
---|
public void update(java.util.Observable arg0, java.lang.Object arg1)
update
in interface java.util.Observer
public SphereLineModel getLineOne()
public SphereLineModel getLineTwo()
public boolean equals(java.lang.Object checkMe)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |