Arbor: State Diagram Editor  2.2.0
Bezier2D Class Reference

2次元の3次ベジェを扱うクラス More...

Public Member Functions

 Bezier2D ()
 
 Bezier2D (Vector2 startPosition, Vector2 startControl, Vector2 endPosition, Vector2 endControl)
 
 Bezier2D (Bezier2D bezier)
 
Vector2 GetPoint (float t)
 ベジェ曲線上の位置を求める。 More...
 
Vector2 GetLinearPoint (float t)
 ベジェ曲線上の位置を線形に求める。 More...
 

Static Public Member Functions

static Vector2 GetPoint (Vector2 startPosition, Vector2 startControl, Vector2 endPosition, Vector2 endControl, float t)
 ベジェ曲線上の位置を求める。 More...
 

Properties

Vector2 startPosition [get, set]
 始点 More...
 
Vector2 startControl [get, set]
 始点のコントロール点 More...
 
Vector2 endPosition [get, set]
 終点 More...
 
Vector2 endControl [get, set]
 終点のコントロール点 More...
 
float length [get]
 長さ More...
 
bool isChanged [get]
 変更されたかどうか More...
 

Detailed Description

2次元の3次ベジェを扱うクラス

Constructor & Destructor Documentation

Bezier2D ( )
Bezier2D ( Vector2  startPosition,
Vector2  startControl,
Vector2  endPosition,
Vector2  endControl 
)
Bezier2D ( Bezier2D  bezier)

Member Function Documentation

Vector2 GetLinearPoint ( float  t)

ベジェ曲線上の位置を線形に求める。

Parameters
t0から1の値
Vector2 GetPoint ( float  t)

ベジェ曲線上の位置を求める。

Parameters
t0から1の値
static Vector2 GetPoint ( Vector2  startPosition,
Vector2  startControl,
Vector2  endPosition,
Vector2  endControl,
float  t 
)
static

ベジェ曲線上の位置を求める。

Parameters
startPosition始点
startControl始点のコントロール点
endPosition終点
endControl終点のコントロール点
t0から1の値

Property Documentation

Vector2 endControl
getset

終点のコントロール点

Vector2 endPosition
getset

終点

bool isChanged
get

変更されたかどうか

float length
get

長さ

Vector2 startControl
getset

始点のコントロール点

Vector2 startPosition
getset

始点