クラス rcsc::Circle2D

2d circle class [詳細]

#include <circle_2d.h>

すべてのメンバ一覧

Public メソッド

 Circle2D ()
 create a zero area circle at (0,0)
 Circle2D (const Vector2D &c, const double &r)
 constructor with all values
const Circle2Dassign (const Vector2D &c, const double &r)
 assign new value.
bool contains (const Vector2D &point) const
 check if point is within this region
const Vector2Dcenter () const
 get the center point
const double & radius () const
 get the radius value
int intersection (const Line2D &line, Vector2D *sol1, Vector2D *sol2) const
 caluclate the intersection with straight line
int intersection (const Ray2D &ray, Vector2D *sol1, Vector2D *sol2) const
 calculate the intersection with ray line
int intersection (const Circle2D &circle, Vector2D *sol1, Vector2D *sol2) const
 calculate the intersection with another circle

Static Public メソッド

static Circle2D circumcircle (const Vector2D &a, const Vector2D &b, const Vector2D &c)
 get the circumcircle from triangle vertexs


説明

2d circle class


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

rcsc::Circle2D::Circle2D ( const Vector2D c,
const double &  r 
) [inline]

constructor with all values

引数:
c center point
r radius value


関数

const Circle2D& rcsc::Circle2D::assign ( const Vector2D c,
const double &  r 
) [inline]

assign new value.

引数:
c center point
r radius value
戻り値:
const reference to this

bool rcsc::Circle2D::contains ( const Vector2D point  )  const [inline]

check if point is within this region

引数:
point considered point
戻り値:
true if point is contained by this circle

const Vector2D& rcsc::Circle2D::center (  )  const [inline]

get the center point

戻り値:
center point coordinate value

const double& rcsc::Circle2D::radius (  )  const [inline]

get the radius value

戻り値:
radius value

int rcsc::Circle2D::intersection ( const Line2D line,
Vector2D sol1,
Vector2D sol2 
) const

caluclate the intersection with straight line

引数:
line considerd line
sol1 pointer to the 1st solution variable
sol2 pointer to the 2nd solution variable
戻り値:
the number of solution

int rcsc::Circle2D::intersection ( const Ray2D ray,
Vector2D sol1,
Vector2D sol2 
) const

calculate the intersection with ray line

引数:
ray considerd ray
sol1 pointer to the 1st solution variable
sol2 pointer to the 2nd solution variable
戻り値:
the number of solution

int rcsc::Circle2D::intersection ( const Circle2D circle,
Vector2D sol1,
Vector2D sol2 
) const

calculate the intersection with another circle

引数:
circle considerd circle
sol1 pointer to the 1st solution variable
sol2 pointer to the 2nd solution variable
戻り値:
the number of solution

Circle2D rcsc::Circle2D::circumcircle ( const Vector2D a,
const Vector2D b,
const Vector2D c 
) [static]

get the circumcircle from triangle vertexs

引数:
a triangle's 1st vertex
b triangle's 2nd vertex
c triangle's 3rd vertex
戻り値:
coordinates of circumcenter


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