C# Класс geek.GameEngine.Behaviours.BezierSegment

A class representing a segment of the bezier curve along which an object moves.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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