vector_2d.h

2d vector class Header File. [詳細]

#include <rcsc/geom/angle_deg.h>
#include <functional>
#include <iostream>
#include <cmath>

ソースコードを見る。

ネームスペース

namespace  rcsc

構成

class  rcsc::Vector2D
 2D point vector class [詳細]
class  rcsc::Vector2D::XCmp
 comparison predicate for X value. [詳細]
class  rcsc::Vector2D::YCmp
 comparison predicate for Y value. [詳細]
class  rcsc::Vector2D::AbsXCmp
 comparison predicate for absolute X value. [詳細]
class  rcsc::Vector2D::AbsYCmp
 comparison predicate for absolute Y value. [詳細]
class  rcsc::Vector2D::IsWithin< REGION >
 template predicate for 2D region sign detection. [詳細]

関数

bool operator== (const rcsc::Vector2D &lhs, const rcsc::Vector2D &rhs)
 check vectors are same or not.
bool operator!= (const rcsc::Vector2D &lhs, const rcsc::Vector2D &rhs)
 check vectors are different or not.
const rcsc::Vector2D operator+ (const rcsc::Vector2D &lhs, const rcsc::Vector2D &rhs)
 operator add(T, T)
const rcsc::Vector2D operator- (const rcsc::Vector2D &lhs, const rcsc::Vector2D &rhs)
 operator sub(T, T)
const rcsc::Vector2D operator * (const rcsc::Vector2D &lhs, const double &rhs)
 operator mult(T, U)
const rcsc::Vector2D operator/ (const rcsc::Vector2D &lhs, const double &rhs)
 operator div(T, U)
template<typename T>
bool operator< (const rcsc::Vector2D &lhs, const T &rhs)
 never used
template<typename T>
bool operator<= (const rcsc::Vector2D &lhs, const T &rhs)
 never used
template<typename T>
bool operator> (const rcsc::Vector2D &lhs, const T &rhs)
 never used
template<typename T>
bool operator>= (const rcsc::Vector2D &lhs, const T &rhs)
 never used
template<typename T>
bool operator< (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator<= (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator> (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator>= (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator== (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator!= (const T &lhs, const rcsc::Vector2D &rhs)
 never used
std::ostream & operator<< (std::ostream &os, const rcsc::Vector2D &v)
 stream operator


説明

2d vector class Header File.


関数

const rcsc::Vector2D operator * ( const rcsc::Vector2D lhs,
const double &  rhs 
) [inline]

operator mult(T, U)

引数:
lhs left hand side parameter
rhs right hand side parameter. double type
戻り値:
new vector object

bool operator!= ( const rcsc::Vector2D lhs,
const rcsc::Vector2D rhs 
) [inline]

check vectors are different or not.

引数:
lhs left hand side parameter
rhs right hand side parameter
戻り値:
true if vectors are not same.

const rcsc::Vector2D operator+ ( const rcsc::Vector2D lhs,
const rcsc::Vector2D rhs 
) [inline]

operator add(T, T)

引数:
lhs left hand side parameter
rhs right hand side parameter
戻り値:
new vector object

const rcsc::Vector2D operator- ( const rcsc::Vector2D lhs,
const rcsc::Vector2D rhs 
) [inline]

operator sub(T, T)

引数:
lhs left hand side parameter
rhs right hand side parameter
戻り値:
new vector object

const rcsc::Vector2D operator/ ( const rcsc::Vector2D lhs,
const double &  rhs 
) [inline]

operator div(T, U)

引数:
lhs left hand side parameter
rhs right hand side parameter. double type
戻り値:
new vector object

std::ostream& operator<< ( std::ostream &  os,
const rcsc::Vector2D v 
) [inline]

stream operator

引数:
os reference to ostream
v output value
戻り値:
reference to ostream

bool operator== ( const rcsc::Vector2D lhs,
const rcsc::Vector2D rhs 
) [inline]

check vectors are same or not.

引数:
lhs left hand side parameter
rhs right hand side parameter
戻り値:
true if vectors are same.


librcscに対してThu May 1 15:41:23 2008に生成されました。  doxygen 1.5.0