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

#include <mapbasic.h>

Inheritance diagram for Point_3< T >:
Collaboration diagram for Point_3< T >:

Public Types

typedef R_ R
 
typedef R::RT RT
 
typedef R::FT FT
 
typedef R::Point_3_base RPoint_3
 
typedef R::Vector_3_base RVector_3
 

Public Member Functions

 Point_3 ()
 
 Point_3 (T t)
 
 Point_3 (Origin)
 
 Point_3 (T a, T b, T c)
 
T & operator[] (const int i)
 
const T & operator[] (const int i) const
 
Point_3operator+= (const Vector_3< T > &v)
 Assign operators. More...
 
Point_3operator-= (const Vector_3< T > &v)
 
Point_3 operator+ (const Vector_3< T > &v) const
 Arithmatic operators. More...
 
Point_3 operator- (const Vector_3< T > &v) const
 
Vector_3< T > operator- (const Point_3 &v) const
 
bool operator== (const Point_3 &p) const
 
bool operator!= (const Point_3 &p) const
 
bool operator< (const Point_3 &v) const
 
bool is_origin () const
 
 Point_3 ()
 
 Point_3 (const Origin &o)
 
 Point_3 (const CGAL::Point_3< R > &p)
 
 Point_3 (const RPoint_3 &p)
 
 Point_3 (const RT &hx, const RT &hy, const RT &hz)
 
 Point_3 (const RT &hx, const RT &hy, const RT &hz, const RT &hw)
 
bool operator== (const CGAL::Point_3< R > &p) const
 
bool operator!= (const CGAL::Point_3< R > &p) const
 
RT hx () const
 
RT hy () const
 
RT hz () const
 
RT hw () const
 
FT x () const
 
FT y () const
 
FT z () const
 
RT homogeneous (int i) const
 
FT cartesian (int i) const
 
FT operator[] (int i) const
 
int dimension () const
 
Bbox_3 bbox () const
 
CGAL::Point_3< Rtransform (const CGAL::Aff_transformation_3< R > &t) const
 
 Point_3 ()
 
 Point_3 (Type a, Type b, Type c)
 
Typeoperator[] (const int i)
 
const Typeoperator[] (const int i) const
 

Protected Attributes

Type _x
 
Type _y
 
Type _z
 

Private Types

typedef double Type
 

Private Member Functions

 Point_3 (const RVector_3 &v)
 

Friends

CGAL_FRIEND_INLINE
CGAL::Point_3< R >
vector_to_point_conversion 
CGAL_NULL_TMPL_ARGS (const CGAL::Vector_3< R > &v)
 

Detailed Description

template<class T>
class Point_3< T >

Definition at line 147 of file mapbasic.h.

Member Typedef Documentation

typedef R::FT FT

Definition at line 85 of file Point_3.h.

typedef R_ R

Definition at line 83 of file Point_3.h.

typedef R::Point_3_base RPoint_3

Definition at line 86 of file Point_3.h.

typedef R::RT RT

Definition at line 84 of file Point_3.h.

typedef R::Vector_3_base RVector_3

Definition at line 87 of file Point_3.h.

typedef double Type
private

Definition at line 43 of file plot3d.C.

Constructor & Destructor Documentation

Point_3 ( )
inline

Definition at line 149 of file mapbasic.h.

Referenced by Point_3< Real >::operator+(), and Point_3< Real >::operator-().

149 {}

Here is the caller graph for this function:

Point_3 ( t)
inlineexplicit

Definition at line 150 of file mapbasic.h.

150 : Vector_3<T>(t) {}
Some basic geometric data types.
Definition: mapbasic.h:54
Point_3 ( Origin  )
inline

Definition at line 151 of file mapbasic.h.

151 : Vector_3<T>(0, 0, 0) {}
Some basic geometric data types.
Definition: mapbasic.h:54
Point_3 ( a,
b,
c 
)
inline

Definition at line 153 of file mapbasic.h.

153 : Vector_3<T>(a, b, c) {}
Some basic geometric data types.
Definition: mapbasic.h:54
Point_3 ( )
inline

Definition at line 95 of file Point_3.h.

96  {}
Point_3 ( const Origin o)
inline

Definition at line 97 of file Point_3.h.

97  : RPoint_3(o)
98  {}
R::Point_3_base RPoint_3
Definition: Point_3.h:86
Point_3 ( const CGAL::Point_3< R > &  p)
inline

Definition at line 99 of file Point_3.h.

99  : RPoint_3( (const RPoint_3& )p )
100  {}
R::Point_3_base RPoint_3
Definition: Point_3.h:86
Point_3 ( const RPoint_3< T > &  p)
inline

Definition at line 101 of file Point_3.h.

101  : RPoint_3(p)
102  {}
R::Point_3_base RPoint_3
Definition: Point_3.h:86
Point_3 ( const RT hx,
const RT hy,
const RT hz 
)
inline

Definition at line 103 of file Point_3.h.

104  : RPoint_3(hx, hy, hz)
105  {}
R::Point_3_base RPoint_3
Definition: Point_3.h:86
RT hx() const
Definition: Point_3.h:117
RT hy() const
Definition: Point_3.h:120
RT hz() const
Definition: Point_3.h:123
Point_3 ( const RT hx,
const RT hy,
const RT hz,
const RT hw 
)
inline

Definition at line 106 of file Point_3.h.

107  : RPoint_3(hx, hy, hz, hw)
108  {}
R::Point_3_base RPoint_3
Definition: Point_3.h:86
RT hx() const
Definition: Point_3.h:117
RT hy() const
Definition: Point_3.h:120
RT hz() const
Definition: Point_3.h:123
RT hw() const
Definition: Point_3.h:126
Point_3 ( const RVector_3 v)
inlineprivate

Definition at line 157 of file Point_3.h.

157  : RPoint_3(v)
158  {}
R::Point_3_base RPoint_3
Definition: Point_3.h:86
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
Definition: roccomf90.h:20
Point_3 ( )
inline

Definition at line 45 of file plot3d.C.

45 {}
Point_3 ( Type  a,
Type  b,
Type  c 
)
inline

Definition at line 46 of file plot3d.C.

46 : _x(a), _y(b), _z(c) {}
Type _y
Definition: plot3d.C:51
Type _z
Definition: plot3d.C:51
Type _x
Definition: plot3d.C:51

Member Function Documentation

Bbox_3 bbox ( ) const
inline

Definition at line 150 of file Point_3.h.

151  { return RPoint_3::bbox(); }
FT cartesian ( int  i) const
inline

Definition at line 141 of file Point_3.h.

Referenced by Point_3< Real >::operator[]().

142  { return RPoint_3::cartesian(i); }
blockLoc i
Definition: read.cpp:79

Here is the caller graph for this function:

int dimension ( ) const
inline

Definition at line 147 of file Point_3.h.

148  { return 3; }
RT homogeneous ( int  i) const
inline

Definition at line 138 of file Point_3.h.

139  { return RPoint_3::homogeneous(i); }
blockLoc i
Definition: read.cpp:79
RT hw ( ) const
inline

Definition at line 126 of file Point_3.h.

127  { return RPoint_3::hw(); }
RT hx ( ) const
inline

Definition at line 117 of file Point_3.h.

118  { return RPoint_3::hx(); }
RT hy ( ) const
inline

Definition at line 120 of file Point_3.h.

121  { return RPoint_3::hy(); }
RT hz ( ) const
inline

Definition at line 123 of file Point_3.h.

124  { return RPoint_3::hz(); }
bool is_origin ( ) const
inline

Definition at line 183 of file mapbasic.h.

183 { return _x==0&&_y==0&&_z==0; }
Type _y
Definition: plot3d.C:51
Type _z
Definition: plot3d.C:51
Type _x
Definition: plot3d.C:51
bool operator!= ( const CGAL::Point_3< R > &  p) const
inline

Definition at line 113 of file Point_3.h.

114  { return !(*this == p); }
bool operator!= ( const Point_3< T > &  p) const
inline

Definition at line 177 of file mapbasic.h.

178  { return x()!=p.x() || y()!=p.y() || z()!=p.z(); }
FT x() const
Definition: Point_3.h:129
FT y() const
Definition: Point_3.h:132
FT z() const
Definition: Point_3.h:135
Point_3 operator+ ( const Vector_3< T > &  v) const
inline

Arithmatic operators.

Definition at line 167 of file mapbasic.h.

168  { return Point_3(_x+v.x(), _y+v.y(), _z+v.z()); }
Point_3()
Definition: mapbasic.h:149
Type _y
Definition: plot3d.C:51
Type z() const
Definition: mapbasic.h:65
Type y() const
Definition: mapbasic.h:64
Type x() const
Definition: mapbasic.h:63
Type _z
Definition: plot3d.C:51
Type _x
Definition: plot3d.C:51
Point_3& operator+= ( const Vector_3< T > &  v)
inline

Assign operators.

Definition at line 161 of file mapbasic.h.

162  { _x+=v.x(); _y+=v.y(); _z+=v.z(); return *this; }
Type _y
Definition: plot3d.C:51
Type z() const
Definition: mapbasic.h:65
Type y() const
Definition: mapbasic.h:64
Type x() const
Definition: mapbasic.h:63
Type _z
Definition: plot3d.C:51
Type _x
Definition: plot3d.C:51
Point_3 operator- ( const Vector_3< T > &  v) const
inline

Definition at line 169 of file mapbasic.h.

170  { return Point_3(_x-v.x(), _y-v.y(), _z-v.z()); }
Point_3()
Definition: mapbasic.h:149
Type _y
Definition: plot3d.C:51
Type z() const
Definition: mapbasic.h:65
Type y() const
Definition: mapbasic.h:64
Type x() const
Definition: mapbasic.h:63
Type _z
Definition: plot3d.C:51
Type _x
Definition: plot3d.C:51
Vector_3<T> operator- ( const Point_3< T > &  v) const
inline

Definition at line 171 of file mapbasic.h.

172  { return Vector_3<T>(_x-v.x(), _y-v.y(), _z-v.z()); }
Type _y
Definition: plot3d.C:51
FT x() const
Definition: Point_3.h:129
Type _z
Definition: plot3d.C:51
FT y() const
Definition: Point_3.h:132
Type _x
Definition: plot3d.C:51
Some basic geometric data types.
Definition: mapbasic.h:54
FT z() const
Definition: Point_3.h:135
Point_3& operator-= ( const Vector_3< T > &  v)
inline

Definition at line 163 of file mapbasic.h.

164  { _x-=v.x(); _y-=v.y(); _z-=v.z(); return *this; }
Type _y
Definition: plot3d.C:51
Type z() const
Definition: mapbasic.h:65
Type y() const
Definition: mapbasic.h:64
Type x() const
Definition: mapbasic.h:63
Type _z
Definition: plot3d.C:51
Type _x
Definition: plot3d.C:51
bool operator< ( const Point_3< T > &  v) const
inline

Definition at line 180 of file mapbasic.h.

181  { return Vector_3<T>::operator<(v); }
bool operator<(const Vector_3 &v) const
Definition: mapbasic.h:129
bool operator== ( const CGAL::Point_3< R > &  p) const
inline

Definition at line 110 of file Point_3.h.

111  { return RPoint_3::operator==(p); }
CGAL_END_NAMESPACE CGAL_BEGIN_NAMESPACE bool operator==(const Origin &o, const Point_2< R > &p)
Definition: Point_2.h:239
bool operator== ( const Point_3< T > &  p) const
inline

Definition at line 174 of file mapbasic.h.

175  { return x()==p.x() && y()==p.y() && z()==p.z(); }
FT x() const
Definition: Point_3.h:129
FT y() const
Definition: Point_3.h:132
FT z() const
Definition: Point_3.h:135
Type& operator[] ( const int  i)
inline

Definition at line 47 of file plot3d.C.

47 { return (&_x)[i]; }
blockLoc i
Definition: read.cpp:79
Type _x
Definition: plot3d.C:51
const Type& operator[] ( const int  i) const
inline

Definition at line 48 of file plot3d.C.

48 { return (&_x)[i]; }
blockLoc i
Definition: read.cpp:79
Type _x
Definition: plot3d.C:51
FT operator[] ( int  i) const
inline

Definition at line 144 of file Point_3.h.

145  { return cartesian(i); }
blockLoc i
Definition: read.cpp:79
FT cartesian(int i) const
Definition: Point_3.h:141
T& operator[] ( const int  i)
inline

Definition at line 154 of file mapbasic.h.

154 { return (&_x)[i]; }
blockLoc i
Definition: read.cpp:79
Type _x
Definition: plot3d.C:51
const T& operator[] ( const int  i) const
inline

Definition at line 155 of file mapbasic.h.

155 { return (&_x)[i]; }
blockLoc i
Definition: read.cpp:79
Type _x
Definition: plot3d.C:51
CGAL::Point_3<R> transform ( const CGAL::Aff_transformation_3< R > &  t) const
inline

Definition at line 153 of file Point_3.h.

154  { return RPoint_3::transform(t); }
FT x ( ) const
inline
FT y ( ) const
inline
FT z ( ) const
inline

Friends And Related Function Documentation

CGAL_FRIEND_INLINE CGAL::Point_3<R> vector_to_point_conversion CGAL_NULL_TMPL_ARGS ( const CGAL::Vector_3< R > &  v)
friend

Member Data Documentation


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