facets.util.geom
Class Line
java.lang.Object
facets.util.geom.Line
- All Implemented Interfaces:
- Identified, java.io.Serializable
public class Line
- extends java.lang.Object
- implements java.io.Serializable, Identified
Abstract 2D line.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.lang.Object |
identity()
Return an object that is as far as possible unique for the implementation. |
double |
length()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
from
public final Point from
to
public final Point to
color
public Shade color
Line
public Line(double[] doubles)
Line
public Line(Point[] points)
Line
public Line()
Line
public Line(Point from,
Point to)
Line
public Line(Point from,
Point to,
Shade color)
length
public double length()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
identity
public java.lang.Object identity()
- Description copied from interface:
Identified
- Return an object that is as far as possible unique for the implementation.
This will usually be a class instance counter.
- Specified by:
identity
in interface Identified