PPL Logo

Vector_3< Type > Class Template Reference

Some basic geometric data types. More...

#include <mapbasic.h>

Inheritance diagram for Vector_3< Type >:

Inheritance graph
[legend]
Collaboration diagram for Vector_3< Type >:

Collaboration graph
[legend]

Public Member Functions

 Vector_3 ()
 Vector_3 (Type t)
 Vector_3 (Null_vector)
 Vector_3 (Type a, Type b, Type c)
Typeoperator[] (const int i)
const Typeoperator[] (const int i) const
Type x () const
Type y () const
Type z () const
Vector_3operator+= (const Type t)
 Assign operators.
Vector_3operator+= (const Vector_3 &v)
Vector_3operator-= (const Type t)
Vector_3operator-= (const Vector_3 &v)
Vector_3operator*= (const Type t)
Vector_3operator*= (const Vector_3 &v)
Vector_3operator/= (const Type t)
Vector_3operator/= (const Vector_3 &v)
Vector_3 operator+ (const Type t) const
 Arithmatic operators.
Vector_3 operator+ (const Vector_3 &v) const
Vector_3 operator- (const Type t) const
Vector_3 operator- (const Vector_3 &v) const
Vector_3 operator* (const Type t) const
Vector_3 operator/ (const Type t) const
Type operator* (const Vector_3 &v) const
Vector_3 operator- () const
Type squared_norm () const
Type norm () const
Vector_3normalize ()
Vector_3neg ()
bool operator== (const Vector_3 &p) const
bool operator!= (const Vector_3 &p) const
bool operator< (const Vector_3 &v) const
bool is_null () const

Static Public Member Functions

static Vector_3 cross_product (const Vector_3 &v, const Vector_3 &w)

Protected Attributes

Type _x
Type _y
Type _z

Detailed Description

template<class Type>
class Vector_3< Type >

Some basic geometric data types.

Definition at line 33 of file mapbasic.h.


Constructor & Destructor Documentation

template<class Type>
Vector_3< Type >::Vector_3 (  )  [inline]

Definition at line 35 of file mapbasic.h.

Referenced by Vector_3< T >::cross_product(), Vector_3< T >::operator*(), Vector_3< T >::operator+(), Vector_3< T >::operator-(), and Vector_3< T >::operator/().

Here is the caller graph for this function:

template<class Type>
Vector_3< Type >::Vector_3 ( Type  t  )  [inline, explicit]

Definition at line 36 of file mapbasic.h.

template<class Type>
Vector_3< Type >::Vector_3 ( Null_vector   )  [inline]

Definition at line 37 of file mapbasic.h.

template<class Type>
Vector_3< Type >::Vector_3 ( Type  a,
Type  b,
Type  c 
) [inline]

Definition at line 38 of file mapbasic.h.


Member Function Documentation

template<class Type>
Type& Vector_3< Type >::operator[] ( const int  i  )  [inline]

Reimplemented in Point_3< T >.

Definition at line 39 of file mapbasic.h.

template<class Type>
const Type& Vector_3< Type >::operator[] ( const int  i  )  const [inline]

Reimplemented in Point_3< T >.

Definition at line 40 of file mapbasic.h.

template<class Type>
Type Vector_3< Type >::x (  )  const [inline]

template<class Type>
Type Vector_3< Type >::y (  )  const [inline]

template<class Type>
Type Vector_3< Type >::z (  )  const [inline]

template<class Type>
Vector_3& Vector_3< Type >::operator+= ( const Type  t  )  [inline]

Assign operators.

Definition at line 47 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::operator+= ( const Vector_3< Type > &  v  )  [inline]

Definition at line 49 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::operator-= ( const Type  t  )  [inline]

Definition at line 51 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::operator-= ( const Vector_3< Type > &  v  )  [inline]

Definition at line 53 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::operator*= ( const Type  t  )  [inline]

Definition at line 55 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::operator*= ( const Vector_3< Type > &  v  )  [inline]

Definition at line 57 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::operator/= ( const Type  t  )  [inline]

Definition at line 59 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::operator/= ( const Vector_3< Type > &  v  )  [inline]

Definition at line 61 of file mapbasic.h.

template<class Type>
Vector_3 Vector_3< Type >::operator+ ( const Type  t  )  const [inline]

Arithmatic operators.

Definition at line 65 of file mapbasic.h.

template<class Type>
Vector_3 Vector_3< Type >::operator+ ( const Vector_3< Type > &  v  )  const [inline]

Definition at line 67 of file mapbasic.h.

template<class Type>
Vector_3 Vector_3< Type >::operator- ( const Type  t  )  const [inline]

Definition at line 69 of file mapbasic.h.

template<class Type>
Vector_3 Vector_3< Type >::operator- ( const Vector_3< Type > &  v  )  const [inline]

Definition at line 71 of file mapbasic.h.

template<class Type>
Vector_3 Vector_3< Type >::operator* ( const Type  t  )  const [inline]

Definition at line 73 of file mapbasic.h.

template<class Type>
Vector_3 Vector_3< Type >::operator/ ( const Type  t  )  const [inline]

Definition at line 75 of file mapbasic.h.

template<class Type>
Type Vector_3< Type >::operator* ( const Vector_3< Type > &  v  )  const [inline]

Definition at line 77 of file mapbasic.h.

template<class Type>
Vector_3 Vector_3< Type >::operator- (  )  const [inline]

Definition at line 80 of file mapbasic.h.

template<class Type>
static Vector_3 Vector_3< Type >::cross_product ( const Vector_3< Type > &  v,
const Vector_3< Type > &  w 
) [inline, static]

Definition at line 83 of file mapbasic.h.

template<class Type>
Type Vector_3< Type >::squared_norm (  )  const [inline]

Definition at line 89 of file mapbasic.h.

Referenced by Vector_3< T >::normalize().

Here is the caller graph for this function:

template<class Type>
Type Vector_3< Type >::norm (  )  const [inline]

Definition at line 91 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::normalize (  )  [inline]

Definition at line 93 of file mapbasic.h.

template<class Type>
Vector_3& Vector_3< Type >::neg (  )  [inline]

Definition at line 99 of file mapbasic.h.

template<class Type>
bool Vector_3< Type >::operator== ( const Vector_3< Type > &  p  )  const [inline]

Definition at line 103 of file mapbasic.h.

template<class Type>
bool Vector_3< Type >::operator!= ( const Vector_3< Type > &  p  )  const [inline]

Definition at line 105 of file mapbasic.h.

template<class Type>
bool Vector_3< Type >::operator< ( const Vector_3< Type > &  v  )  const [inline]

Definition at line 108 of file mapbasic.h.

Referenced by Point_3< T >::operator<().

Here is the caller graph for this function:

template<class Type>
bool Vector_3< Type >::is_null (  )  const [inline]

Definition at line 112 of file mapbasic.h.


Field Documentation

template<class Type>
Type Vector_3< Type >::_x [protected]

template<class Type>
Type Vector_3< Type >::_y [protected]

template<class Type>
Type Vector_3< Type >::_z [protected]


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

Generated on Mon Sep 21 08:31:38 2020 for Charm++ by  doxygen 1.5.5