Constructor and Description |
---|
Segment_3() |
Segment_3(Point_3 p,
Point_3 q) |
Modifier and Type | Method and Description |
---|---|
int |
dimension() |
boolean |
hasOn(Point_ p)
A point is on s,
iff it is equal to the source or target of s,
or if it is in the interior of s
|
boolean |
isDegenerate()
segment s is degenerate, if source and target fall together
|
Vector_ |
opposite()
returns a segment with source and target interchanged
|
Point_ |
source() |
java.lang.Number |
squaredLength()
returns the squared length
|
Point_ |
target() |
java.lang.String |
toString() |
Vector_ |
toVector()
returns the vector s.target() - s.source()
|
Point_ |
vertex(int i) |
public Vector_ toVector()
public Vector_ opposite()
public java.lang.Number squaredLength()
public boolean hasOn(Point_ p)
public boolean isDegenerate()
public java.lang.String toString()
toString
in class java.lang.Object
public int dimension()