C# 클래스 geek.GameEngine.Behaviours.BezierSegment

A class representing a segment of the bezier curve along which an object moves.
파일 보기 프로젝트 열기: impworks/xna.geek.engine 1 사용 예제들

공개 메소드들

메소드 설명
BezierSegment ( Vector2 p1, Vector2 p2, Vector2 p3 ) : System
Step ( float length ) : void

Advance the object along the curve.

비공개 메소드들

메소드 설명
calculateLength ( ) : void

Get the length of the curve. http://segfaultlabs.com/docs/quadratic-bezier-curve-length

getPoint ( Vector2 p1, Vector2 p2, float percent ) : Vector2

Find a point on the line piece.

updatePoint ( float percent ) : void

Update the current point.

메소드 상세

BezierSegment() 공개 메소드

public BezierSegment ( Vector2 p1, Vector2 p2, Vector2 p3 ) : System
p1 Vector2
p2 Vector2
p3 Vector2
리턴 System

Step() 공개 메소드

Advance the object along the curve.
public Step ( float length ) : void
length float
리턴 void