Class: BezierCurve

BezierCurve

Created by Faton on 26.06.18.


new BezierCurve(from, target, p1, p2)

Parameters:
Name Type Description
from olympe.utils.Vector
target olympe.utils.Vector
p1 olympe.utils.Vector
p2 olympe.utils.Vector

Members


<non-null> from :olympe.utils.Vector

Type:

<non-null> p1 :olympe.utils.Vector

Type:

<non-null> p2 :olympe.utils.Vector

Type:

<non-null> target :olympe.utils.Vector

Type:

Methods


<static> generateSShape(from, target)

Generate S Shape

Parameters:
Name Type Description
from olympe.utils.Vector
target olympe.utils.Vector
Returns:
Type
olympe.utils.BezierCurve

<static> generateUShape(from, target, angle)

Generate U Shape

Parameters:
Name Type Description
from olympe.utils.Vector
target olympe.utils.Vector
angle number
Returns:
Type
olympe.utils.BezierCurve

getMiddle()

Returns the middle point of the bezier curve

Returns:
Type
olympe.utils.Vector

toString()

Returns a representation of the current bezier curve as a string.

Returns:
Type
string