PPL Logo

Vector_2< Type > Class Template Reference

#include <mapbasic.h>

Inheritance diagram for Vector_2< Type >:

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

Collaboration graph
[legend]

Public Member Functions

 Vector_2 ()
 Vector_2 (Type t)
 Vector_2 (Null_vector)
 Vector_2 (Type a, Type b)
Typeoperator[] (const int i)
const Typeoperator[] (const int &i) const
Type x () const
Type y () const
Vector_2operator+= (const Vector_2 &v)
 Assign operators.
Vector_2operator-= (const Vector_2 &v)
Vector_2operator*= (const Type t)
Vector_2operator/= (const Type t)
Vector_2 operator+ (const Vector_2 &v) const
 Arithmatic operators.
Vector_2 operator- (const Vector_2 &v) const
Vector_2 operator* (const Type t) const
Vector_2 operator/ (const Type t) const
Type operator* (const Vector_2 &v) const
Vector_2 operator- () const
Type squared_norm () const
Type norm () const
Vector_2normalize ()
Vector_2neg ()
bool operator== (const Vector_2 &p) const
bool operator!= (const Vector_2 &p) const
bool operator< (const Vector_2 &v) const
bool is_null () const

Protected Attributes

Type _x
Type _y

Detailed Description

template<class Type>
class Vector_2< Type >

Definition at line 178 of file mapbasic.h.


Constructor & Destructor Documentation

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

Definition at line 180 of file mapbasic.h.

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

Here is the caller graph for this function:

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

Definition at line 181 of file mapbasic.h.

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

Definition at line 182 of file mapbasic.h.

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

Definition at line 183 of file mapbasic.h.


Member Function Documentation

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

Reimplemented in Point_2< T >.

Definition at line 184 of file mapbasic.h.

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

Definition at line 185 of file mapbasic.h.

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

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

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

Assign operators.

Definition at line 191 of file mapbasic.h.

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

Definition at line 193 of file mapbasic.h.

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

Definition at line 195 of file mapbasic.h.

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

Definition at line 197 of file mapbasic.h.

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

Arithmatic operators.

Definition at line 201 of file mapbasic.h.

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

Definition at line 203 of file mapbasic.h.

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

Definition at line 205 of file mapbasic.h.

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

Definition at line 207 of file mapbasic.h.

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

Definition at line 209 of file mapbasic.h.

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

Definition at line 212 of file mapbasic.h.

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

Definition at line 215 of file mapbasic.h.

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

Here is the caller graph for this function:

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

Definition at line 217 of file mapbasic.h.

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

Definition at line 219 of file mapbasic.h.

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

Definition at line 225 of file mapbasic.h.

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

Definition at line 229 of file mapbasic.h.

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

Definition at line 232 of file mapbasic.h.

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

Definition at line 235 of file mapbasic.h.

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

Here is the caller graph for this function:

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

Definition at line 238 of file mapbasic.h.


Field Documentation

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

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


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

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