Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Segment_2< R, T > Class Template Reference

#include <cartesian_classes.h>

Inheritance diagram for Segment_2< R, T >:
Collaboration diagram for Segment_2< R, T >:

Public Types

typedef R_ R
 
typedef R::RT RT
 
typedef R::FT FT
 
typedef R::Segment_2_base RSegment_2
 

Public Member Functions

 Segment_2 ()
 
 ~Segment_2 ()
 
 Segment_2 (const CGAL::Segment_2< R > &s)
 
 Segment_2 (const CGAL::Point_2< R > &sp, const CGAL::Point_2< R > &ep)
 
 Segment_2 (const RSegment_2 &s)
 
bool is_horizontal () const
 
bool is_vertical () const
 
bool has_on (const CGAL::Point_2< R > &p) const
 
bool collinear_has_on (const CGAL::Point_2< R > &p) const
 
bool operator== (const CGAL::Segment_2< R > &s) const
 
bool operator!= (const CGAL::Segment_2< R > &s) const
 
CGAL::Point_2< Rstart () const
 
CGAL::Point_2< Rend () const
 
CGAL::Point_2< Rsource () const
 
CGAL::Point_2< Rtarget () const
 
CGAL::Point_2< Rmin () const
 
CGAL::Point_2< Rmax () const
 
CGAL::Point_2< Rvertex (int i) const
 
CGAL::Point_2< Rpoint (int i) const
 
CGAL::Point_2< Roperator[] (int i) const
 
FT squared_length () const
 
CGAL::Direction_2< Rdirection () const
 
CGAL::Segment_2< Ropposite () const
 
CGAL::Segment_2< Rtransform (const CGAL::Aff_transformation_2< R > &t) const
 
CGAL::Line_2< Rsupporting_line () const
 
bool is_degenerate () const
 
Bbox_2 bbox () const
 

Detailed Description

template<class R, class T = typename R::Rep_tag>
class Segment_2< R, T >

Definition at line 69 of file cartesian_classes.h.

Member Typedef Documentation

typedef R::FT FT

Definition at line 86 of file Segment_2.h.

typedef R_ R

Definition at line 84 of file Segment_2.h.

typedef R::Segment_2_base RSegment_2

Definition at line 87 of file Segment_2.h.

typedef R::RT RT

Definition at line 85 of file Segment_2.h.

Constructor & Destructor Documentation

Segment_2 ( )
inline

Definition at line 89 of file Segment_2.h.

90  : RSegment_2() // does the handle stuff
91  {}
R::Segment_2_base RSegment_2
Definition: Segment_2.h:87
~Segment_2 ( )
inline

Definition at line 93 of file Segment_2.h.

94  {}
Segment_2 ( const CGAL::Segment_2< R > &  s)
inline

Definition at line 96 of file Segment_2.h.

97  : RSegment_2((RSegment_2&)s) // does the handle stuff
98  {}
double s
Definition: blastest.C:80
R::Segment_2_base RSegment_2
Definition: Segment_2.h:87
Segment_2 ( const CGAL::Point_2< R > &  sp,
const CGAL::Point_2< R > &  ep 
)
inline

Definition at line 100 of file Segment_2.h.

101  : RSegment_2(sp,ep)
102  {}
R::Segment_2_base RSegment_2
Definition: Segment_2.h:87
Segment_2 ( const RSegment_2< R, T > &  s)
inline

Definition at line 106 of file Segment_2.h.

107  : RSegment_2(s) // does the handle stuff
108  {}
double s
Definition: blastest.C:80
R::Segment_2_base RSegment_2
Definition: Segment_2.h:87

Member Function Documentation

Bbox_2 bbox ( ) const
inline

Definition at line 179 of file Segment_2.h.

180  { return source().bbox() + target().bbox(); }
CGAL::Point_2< R > target() const
Definition: Segment_2.h:139
CGAL::Point_2< R > source() const
Definition: Segment_2.h:136
bool collinear_has_on ( const CGAL::Point_2< R > &  p) const
inline

Definition at line 120 of file Segment_2.h.

121  { return RSegment_2::collinear_has_on(p); }
CGAL::Direction_2<R> direction ( ) const
inline

Definition at line 160 of file Segment_2.h.

161  { return RSegment_2::direction(); }
CGAL::Point_2<R> end ( ) const
inline

Definition at line 133 of file Segment_2.h.

134  { return RSegment_2::end(); }
bool has_on ( const CGAL::Point_2< R > &  p) const
inline

Definition at line 117 of file Segment_2.h.

118  { return RSegment_2::has_on(p); }
bool is_degenerate ( ) const
inline

Definition at line 176 of file Segment_2.h.

177  { return RSegment_2::is_degenerate(); }
bool is_horizontal ( ) const
inline

Definition at line 111 of file Segment_2.h.

112  { return RSegment_2::is_horizontal(); }
bool is_vertical ( ) const
inline

Definition at line 114 of file Segment_2.h.

115  { return RSegment_2::is_vertical(); }
CGAL::Point_2<R> max ( ) const
inline

Definition at line 145 of file Segment_2.h.

146  { return RSegment_2::max(); }
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
Definition: Vector_n.h:354
CGAL::Point_2<R> min ( ) const
inline

Definition at line 142 of file Segment_2.h.

143  { return RSegment_2::min(); }
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
Definition: Vector_n.h:346
bool operator!= ( const CGAL::Segment_2< R > &  s) const
inline

Definition at line 127 of file Segment_2.h.

128  { return !(*this == s); }
double s
Definition: blastest.C:80
bool operator== ( const CGAL::Segment_2< R > &  s) const
inline

Definition at line 124 of file Segment_2.h.

125  { return RSegment_2::operator==(s); }
CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE bool operator==(const Origin &o, const Point_2< R > &p)
Definition: Point_2.h:239
double s
Definition: blastest.C:80
CGAL::Point_2<R> operator[] ( int  i) const
inline

Definition at line 154 of file Segment_2.h.

155  { return vertex(i); }
CGAL::Point_2< R > vertex(int i) const
Definition: Segment_2.h:148
blockLoc i
Definition: read.cpp:79
CGAL::Segment_2<R> opposite ( ) const
inline

Definition at line 163 of file Segment_2.h.

164  { return CGAL::Segment_2<R>(target(),source()); }
CGAL::Point_2< R > target() const
Definition: Segment_2.h:139
CGAL::Point_2< R > source() const
Definition: Segment_2.h:136
CGAL::Point_2<R> point ( int  i) const
inline

Definition at line 151 of file Segment_2.h.

152  { return RSegment_2::vertex(i); }
blockLoc i
Definition: read.cpp:79
CGAL::Point_2<R> source ( ) const
inline

Definition at line 136 of file Segment_2.h.

Referenced by Segment_2< R >::bbox(), CGAL::do_intersect(), and Segment_2< R >::opposite().

137  { return RSegment_2::source(); }

Here is the caller graph for this function:

FT squared_length ( ) const
inline

Definition at line 157 of file Segment_2.h.

158  { return RSegment_2::squared_length(); }
CGAL::Point_2<R> start ( ) const
inline

Definition at line 130 of file Segment_2.h.

131  { return RSegment_2::start(); }
CGAL::Line_2<R> supporting_line ( ) const
inline

Definition at line 173 of file Segment_2.h.

174  { return RSegment_2::supporting_line(); }
CGAL::Point_2<R> target ( ) const
inline

Definition at line 139 of file Segment_2.h.

Referenced by Segment_2< R >::bbox(), CGAL::do_intersect(), and Segment_2< R >::opposite().

140  { return RSegment_2::target(); }

Here is the caller graph for this function:

CGAL::Segment_2<R> transform ( const CGAL::Aff_transformation_2< R > &  t) const
inline

Definition at line 169 of file Segment_2.h.

170  { return RSegment_2::transform(t); }
CGAL::Point_2<R> vertex ( int  i) const
inline

Definition at line 148 of file Segment_2.h.

Referenced by Segment_2< R >::operator[]().

149  { return RSegment_2::vertex(i); }
blockLoc i
Definition: read.cpp:79

Here is the caller graph for this function:


The documentation for this class was generated from the following files: