クラス rcsc::Size2D

2D size definition class [詳細]

#include <size_2d.h>

すべてのメンバ一覧

Public メソッド

 Size2D ()
 default constructor.
 Size2D (const double &length, const double &width)
 constructor with variables
const Size2Dassign (const double &length, const double &width)
 assign new range directly.
const Size2DsetLength (const double &length)
 set new X range
const Size2DsetWidth (const double &width)
 set new Y range
const double & length () const
 get the value of X range
const double & width () const
 get the value of Y range
double diagonal () const
 get the length of diagonal line
std::ostream & print (std::ostream &os) const
 output values to stream.


説明

2D size definition class


コンストラクタとデストラクタ

rcsc::Size2D::Size2D ( const double &  length,
const double &  width 
) [inline]

constructor with variables

引数:
length x range
width y range


関数

const Size2D& rcsc::Size2D::assign ( const double &  length,
const double &  width 
) [inline]

assign new range directly.

引数:
length new X range
width new Y range
戻り値:
reference to itself

const Size2D& rcsc::Size2D::setLength ( const double &  length  )  [inline]

set new X range

引数:
length new X range
戻り値:
reference to itself

const Size2D& rcsc::Size2D::setWidth ( const double &  width  )  [inline]

set new Y range

引数:
width new Y range
戻り値:
reference to itself

const double& rcsc::Size2D::length (  )  const [inline]

get the value of X range

戻り値:
value of X range

const double& rcsc::Size2D::width (  )  const [inline]

get the value of Y range

戻り値:
value of Y range

double rcsc::Size2D::diagonal (  )  const [inline]

get the length of diagonal line

戻り値:
length of diagonal line

std::ostream& rcsc::Size2D::print ( std::ostream &  os  )  const [inline]

output values to stream.

引数:
os reference to the output stream
戻り値:
reference to the output stream


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0