Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
point_vector_declarations_2.h File Reference
Include dependency graph for point_vector_declarations_2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class R >
CGAL_BEGIN_NAMESPACE Vector_2< R > point_to_vector_conversion (const Point_2< R > &p)
 
template<class R >
Point_2< R > vector_to_point_conversion (const Vector_2< R > &v)
 
template<class R >
Point_2< R > operator+ (const Point_2< R > &p, const Vector_2< R > &v)
 
template<class R >
Point_2< R > operator- (const Point_2< R > &p, const Vector_2< R > &v)
 
template<class R >
Point_2< R > operator+ (const Origin &, const Vector_2< R > &v)
 
template<class R >
Point_2< R > operator- (const Origin &, const Vector_2< R > &v)
 
template<class R >
Vector_2< R > operator- (const Point_2< R > &p, const Point_2< R > &q)
 
template<class R >
Vector_2< R > operator- (const Point_2< R > &p, const Origin &)
 
template<class R >
Vector_2< R > operator- (const Origin &, const Point_2< R > &p)
 

Function Documentation

Point_2<R> operator+ ( const Point_2< R > &  p,
const Vector_2< R > &  v 
)
inline

Definition at line 72 of file point_vector_definitions_2.C.

References v.

73 {
74  typedef typename R::Point_2_base RPoint_2;
75  typedef typename R::Vector_2_base RVector_2;
76  return Point_2<R>((const RPoint_2& )p + (const RVector_2& )v) ;
77 }
Point_2<R> operator+ ( const Origin ,
const Vector_2< R > &  v 
)
inline

Definition at line 92 of file point_vector_definitions_2.C.

References vector_to_point_conversion().

93 { return vector_to_point_conversion(v) ; }
Point_2< R > vector_to_point_conversion(const Vector_2< R > &v)

Here is the call graph for this function:

Point_2<R> operator- ( const Point_2< R > &  p,
const Vector_2< R > &  v 
)
inline

Definition at line 82 of file point_vector_definitions_2.C.

References v.

83 {
84  typedef typename R::Point_2_base RPoint_2;
85  typedef typename R::Vector_2_base RVector_2;
86  return Point_2<R>((const RPoint_2& )p - (const RVector_2& )v) ;
87 }
Point_2<R> operator- ( const Origin ,
const Vector_2< R > &  v 
)
inline

Definition at line 98 of file point_vector_definitions_2.C.

References vector_to_point_conversion().

99 { return vector_to_point_conversion(-v) ; }
Point_2< R > vector_to_point_conversion(const Vector_2< R > &v)

Here is the call graph for this function:

Vector_2<R> operator- ( const Point_2< R > &  p,
const Point_2< R > &  q 
)
inline

Definition at line 104 of file point_vector_definitions_2.C.

References q.

105 {
106  typedef typename R::Point_2_base RPoint_2;
107  return Vector_2<R>((const RPoint_2& )p - (const RPoint_2& )q) ;
108 }
Vector_2<R> operator- ( const Point_2< R > &  p,
const Origin  
)
inline

Definition at line 113 of file point_vector_definitions_2.C.

References point_to_vector_conversion().

114 { return point_to_vector_conversion(p) ; }
CGAL_BEGIN_NAMESPACE Vector_2< R > point_to_vector_conversion(const Point_2< R > &p)

Here is the call graph for this function:

Vector_2<R> operator- ( const Origin ,
const Point_2< R > &  p 
)
inline

Definition at line 119 of file point_vector_definitions_2.C.

References ORIGIN.

120 {
121  typedef typename R::Point_2_base RPoint_2;
122  return Vector_2<R>(ORIGIN - (const RPoint_2& )p) ;
123 }
Origin ORIGIN
Definition: Origin.C:61
CGAL_BEGIN_NAMESPACE Vector_2<R> point_to_vector_conversion ( const Point_2< R > &  p)
inline

Definition at line 60 of file point_vector_definitions_2.C.

Referenced by operator-().

61 { return Vector_2<R>(p); }

Here is the caller graph for this function:

Point_2<R> vector_to_point_conversion ( const Vector_2< R > &  v)
inline

Definition at line 66 of file point_vector_definitions_2.C.

References v.

Referenced by operator+(), and operator-().

67 { return Point_2<R>(v); }
*********************************************************************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

Here is the caller graph for this function: