Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SegmentS3< FT > Class Template Reference

#include <SegmentS3.h>

Public Member Functions

 SegmentS3 ()
 
 SegmentS3 (const PointS3< FT > &sp, const PointS3< FT > &ep)
 
bool has_on (const PointS3< FT > &p) const
 
bool collinear_has_on (const PointS3< FT > &p) const
 
bool operator== (const SegmentS3< FT > &s) const
 
bool operator!= (const SegmentS3< FT > &s) const
 
PointS3< FT > start () const
 
PointS3< FT > end () const
 
PointS3< FT > source () const
 
PointS3< FT > target () const
 
PointS3< FT > min () const
 
PointS3< FT > max () const
 
PointS3< FT > vertex (int i) const
 
PointS3< FT > point (int i) const
 
PointS3< FT > operator[] (int i) const
 
FT squared_length () const
 
DirectionS3< FT > direction () const
 
LineS3< FT > supporting_line () const
 
SegmentS3 opposite () const
 
SegmentS3 transform (const Aff_transformationS3< FT > &t) const
 
bool is_degenerate () const
 
Bbox_3 bbox () const
 

Public Attributes

PointS3< FT > e0
 
PointS3< FT > e1
 

Detailed Description

template<class FT>
class SegmentS3< FT >

Definition at line 61 of file SegmentS3.h.

Constructor & Destructor Documentation

SegmentS3 ( )
inline

Definition at line 63 of file SegmentS3.h.

63 {}
SegmentS3 ( const PointS3< FT > &  sp,
const PointS3< FT > &  ep 
)
inline

Definition at line 64 of file SegmentS3.h.

65  : e0(sp), e1(ep) {}
PointS3< FT > e0
Definition: SegmentS3.h:96
PointS3< FT > e1
Definition: SegmentS3.h:97

Member Function Documentation

Bbox_3 bbox ( ) const
inline

Definition at line 219 of file SegmentS3.h.

220 { return source().bbox() + target().bbox(); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
bool collinear_has_on ( const PointS3< FT > &  p) const
inline

Definition at line 258 of file SegmentS3.h.

References collinear_are_ordered_along_line().

PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
bool collinear_are_ordered_along_line(const Point_2< R > &p, const Point_2< R > &q, const Point_2< R > &r)

Here is the call graph for this function:

DirectionS3< FT > direction ( ) const
inline

Definition at line 184 of file SegmentS3.h.

185 { return DirectionS3<FT>( target() - source() ); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
PointS3< FT > end ( ) const

Definition at line 120 of file SegmentS3.h.

Referenced by LineS3< FT >::LineS3(), and PlaneS3< FT >::PlaneS3().

121 { return e1; }
PointS3< FT > e1
Definition: SegmentS3.h:97

Here is the caller graph for this function:

bool has_on ( const PointS3< FT > &  p) const

Definition at line 252 of file SegmentS3.h.

References are_ordered_along_line().

253 { return are_ordered_along_line(source(), p, target()); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
bool are_ordered_along_line(const Point_2< R > &p, const Point_2< R > &q, const Point_2< R > &r)

Here is the call graph for this function:

bool is_degenerate ( ) const
inline

Definition at line 212 of file SegmentS3.h.

213 { return source() == target(); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
PointS3< FT > max ( ) const
inline

Definition at line 147 of file SegmentS3.h.

References lexicographically_xyz_smaller().

148 {
150  : source();
151 }
PointS3< FT > target() const
Definition: SegmentS3.h:130
bool lexicographically_xyz_smaller(const PointS3< FT > &p, const PointS3< FT > &q)
PointS3< FT > source() const
Definition: SegmentS3.h:125

Here is the call graph for this function:

PointS3< FT > min ( ) const
inline

Definition at line 137 of file SegmentS3.h.

References lexicographically_xyz_smaller().

138 {
140  : target();
141 }
PointS3< FT > target() const
Definition: SegmentS3.h:130
bool lexicographically_xyz_smaller(const PointS3< FT > &p, const PointS3< FT > &q)
PointS3< FT > source() const
Definition: SegmentS3.h:125

Here is the call graph for this function:

bool operator!= ( const SegmentS3< FT > &  s) const
inline

Definition at line 110 of file SegmentS3.h.

References s.

111 { return !(*this == s); }
double s
Definition: blastest.C:80
bool operator== ( const SegmentS3< FT > &  s) const
inline

Definition at line 103 of file SegmentS3.h.

References SegmentS3< FT >::source(), and SegmentS3< FT >::target().

104 { return (source() == s.source()) && (target() == s.target()); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125

Here is the call graph for this function:

PointS3< FT > operator[] ( int  i) const
inline

Definition at line 171 of file SegmentS3.h.

172 { return vertex(i); }
blockLoc i
Definition: read.cpp:79
PointS3< FT > vertex(int i) const
Definition: SegmentS3.h:157
SegmentS3< FT > opposite ( ) const
inline

Definition at line 198 of file SegmentS3.h.

199 { return SegmentS3<FT>(target(), source()); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
PointS3< FT > point ( int  i) const
inline

Definition at line 164 of file SegmentS3.h.

165 { return (i%2 == 0) ? source() : target(); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
blockLoc i
Definition: read.cpp:79
PointS3< FT > source ( ) const

Definition at line 125 of file SegmentS3.h.

Referenced by SegmentS3< FT >::operator==().

126 { return e0; }
PointS3< FT > e0
Definition: SegmentS3.h:96

Here is the caller graph for this function:

FT squared_length ( ) const
inline

Definition at line 177 of file SegmentS3.h.

References squared_distance().

178 { return squared_distance(target(), source()); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
FT squared_distance(const PointS3< FT > &p, const PointS3< FT > &q)

Here is the call graph for this function:

PointS3< FT > start ( ) const

Definition at line 115 of file SegmentS3.h.

Referenced by LineS3< FT >::LineS3(), and PlaneS3< FT >::PlaneS3().

116 { return e0; }
PointS3< FT > e0
Definition: SegmentS3.h:96

Here is the caller graph for this function:

LineS3< FT > supporting_line ( ) const
inline

Definition at line 191 of file SegmentS3.h.

192 { return LineS3<FT>(*this); }
Definition: LineS3.h:59
PointS3< FT > target ( ) const

Definition at line 130 of file SegmentS3.h.

Referenced by SegmentS3< FT >::operator==().

131 { return e1; }
PointS3< FT > e1
Definition: SegmentS3.h:97

Here is the caller graph for this function:

SegmentS3< FT > transform ( const Aff_transformationS3< FT > &  t) const
inline

Definition at line 205 of file SegmentS3.h.

References Aff_transformationS3< FT >::transform().

206 { return SegmentS3<FT>(t.transform(source()), t.transform(target())); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
PointS3< FT > transform(const PointS3< FT > &p) const

Here is the call graph for this function:

PointS3< FT > vertex ( int  i) const
inline

Definition at line 157 of file SegmentS3.h.

158 { return (i%2 == 0) ? source() : target(); }
PointS3< FT > target() const
Definition: SegmentS3.h:130
PointS3< FT > source() const
Definition: SegmentS3.h:125
blockLoc i
Definition: read.cpp:79

Member Data Documentation

PointS3<FT> e0

Definition at line 96 of file SegmentS3.h.

PointS3<FT> e1

Definition at line 97 of file SegmentS3.h.


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