Class Segment_2
java.lang.Object
Jcg.geometry.Segment_2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanA point is on s, iff it is equal to the source or target of s, or if it is in the interior of sbooleansegment s is degenerate, if source and target fall togetheropposite()returns a segment with source and target interchangedsource()returns the squared lengthtarget()toString()toVector()returns the vector s.target() - s.source()vertex(int i)
-
Field Details
-
p
-
q
-
-
Constructor Details
-
Segment_2
public Segment_2() -
Segment_2
-
-
Method Details
-
source
-
target
-
vertex
-
toVector
-
opposite
returns a segment with source and target interchanged -
squaredLength
returns the squared length -
hasOn
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 -
isDegenerate
public boolean isDegenerate()segment s is degenerate, if source and target fall together -
toString
-
dimension
public int dimension()
-