|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsddl.hierarchy.AbstractPoint
public abstract class AbstractPoint
This class represents any kind of point. This is limited to 2 dimensional points.
Constructor Summary | |
---|---|
AbstractPoint()
|
Method Summary | |
---|---|
AbstractPoint |
add(AbstractPoint second)
Adds two points together |
AbstractPoint |
combine(double percentage,
AbstractPoint second)
Linearly combine two points |
abstract AbstractPoint |
copy()
Returns a copy of this Point |
AbstractPoint |
multiply(double multiplier)
Multiply a real number and a point together |
abstract java.lang.String |
solve()
Returns an Asymptote string describing the Point |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPoint()
Method Detail |
---|
public AbstractPoint add(AbstractPoint second)
second
- The second point
public AbstractPoint multiply(double multiplier)
multiplier
- The real number to multiply with the point
public AbstractPoint combine(double percentage, AbstractPoint second)
percentage
- The percentage from the first point (in the range [0..1]) to the second pointsecond
- The second point
public abstract java.lang.String solve()
public abstract AbstractPoint copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |