Class GridSegment_2
java.lang.Object
Jcg.geometry.GridSegment_2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanhasOn(GridPoint_2 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 sopposite()returns a segment with source and target interchangedsource()target()toString()toVector()returns the vector s.target() - s.source()vertex(int i)
-
Field Details
-
p
-
q
-
-
Constructor Details
-
GridSegment_2
public GridSegment_2() -
GridSegment_2
-
-
Method Details
-
source
-
target
-
vertex
-
toVector
returns the vector s.target() - s.source() -
opposite
returns a segment with source and target interchanged -
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 -
toString
-
dimension
public int dimension()
-