|
bool
|
s.operator== ( q) const
|
Test for equality: Two segments are equal, iff their sources and
targets are equal.
|
|
|
bool
|
s.operator!= ( q) const
|
Test for inequality.
|
|
|
Point_2<Kernel>
|
s.source () const
|
returns the source of s.
|
|
|
Point_2<Kernel>
|
s.target () const
|
returns the target of s.
|
|
Point_2<Kernel>
|
s.min () const
|
returns the point of s with lexicographically smallest coordinate.
|
|
|
Point_2<Kernel>
|
s.max () const
|
returns the point of s with lexicographically largest coordinate.
|
|
|
Point_2<Kernel>
|
s.vertex ( int i) const
|
returns source or target of s: vertex(0) returns
the source of s, vertex(1) returns the target of s.
The parameter i is taken modulo 2, which gives
easy access to the other vertex.
|
|
|
Point_2<Kernel>
|
s.point ( int i) const
|
returns vertex(i).
|
|
|
Point_2<Kernel>
|
s.operator[] ( int i) const
|
returns vertex(i).
|
|
|
Kernel::FT
|
s.squared_length () const
|
returns the squared length of s.
|
|
|
Direction_2<Kernel>
|
s.direction () const
|
returns the direction from source to target of s.
|
|
|
Vector_2<Kernel>
|
s.to_vector () const
|
returns the vector s.target() - s.source().
|
|
|
Segment_2<Kernel>
|
s.opposite () const
|
returns a segment with source and target point interchanged.
|
|
|
Line_2<Kernel>
|
s.supporting_line () const
|
returns the line l passing through s. Line l has the
same orientation as segment s.
|