MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGCurveContinuity クラス

Curve continuity measuring class. [詳解]

公開型

enum  CONTINUITY { DISCONT =-1, G0 =0, G1, G2 }
 enumeration to represent geometric continuity [詳解]
 

公開メンバ関数

 MGCurveContinuity (const MGCurve &curve1, const MGCurve &curve2)
 constructor [詳解]
 
CONTINUITY get_continuity () const
 Get the continuity of the two curves. [詳解]
 
const MGPositionP1 () const
 Get the curve1 position(start or end) that is closest to curve2. [詳解]
 
const MGPositionP2 () const
 Get the curve2 position(start or end) that is closest to curve1. [詳解]
 
double distance () const
 Get the distance ot P1() and P2(). [詳解]
 
const MGUnit_vectortan1 () const
 Get the tangent as P1(). [詳解]
 
const MGUnit_vectortan2 () const
 Get the tangent as P2(). [詳解]
 
double tandiff () const
 tan1 and tan2's angle in radian. [詳解]
 
const MGUnit_vectornormal1 () const
 Get curvature direction at P1(). [詳解]
 
const MGUnit_vectornormal2 () const
 Get curvature direction at P2(). [詳解]
 
double normaldiff () const
 Get the normal1 and normal2's angle in radian. [詳解]
 
double curvature1 () const
 Get curvature at P1(). [詳解]
 
double curvature2 () const
 Get curvature at P2(). [詳解]
 

詳解

Curve continuity measuring class.

MGCurveContinuity measures the continuity of two curves. Measuring is done at the closest end points of the two curves. To us MGCurveContinuity, construct MGCurveContinuity object by inputting two curves. All of the continuity information will be generated in the MGCurveContinuity object.

構築子と解体子

MGCurveContinuity::MGCurveContinuity ( const MGCurve curve1,
const MGCurve curve2 
)

constructor

関数詳解

double MGCurveContinuity::curvature1 ( ) const
inline

Get curvature at P1().

double MGCurveContinuity::curvature2 ( ) const
inline

Get curvature at P2().

double MGCurveContinuity::distance ( ) const
inline

Get the distance ot P1() and P2().

CONTINUITY MGCurveContinuity::get_continuity ( ) const
inline

Get the continuity of the two curves.

const MGUnit_vector& MGCurveContinuity::normal1 ( ) const
inline

Get curvature direction at P1().

const MGUnit_vector& MGCurveContinuity::normal2 ( ) const
inline

Get curvature direction at P2().

double MGCurveContinuity::normaldiff ( ) const
inline

Get the normal1 and normal2's angle in radian.

const MGPosition& MGCurveContinuity::P1 ( ) const
inline

Get the curve1 position(start or end) that is closest to curve2.

const MGPosition& MGCurveContinuity::P2 ( ) const
inline

Get the curve2 position(start or end) that is closest to curve1.

const MGUnit_vector& MGCurveContinuity::tan1 ( ) const
inline

Get the tangent as P1().

const MGUnit_vector& MGCurveContinuity::tan2 ( ) const
inline

Get the tangent as P2().

double MGCurveContinuity::tandiff ( ) const
inline

tan1 and tan2's angle in radian.


このクラス詳解は次のファイルから抽出されました: