Sword Engine

Class: BezierCurve

C new BezierCurve( p0: Vector, p1: Vector, p2: Vector ) → {void}

A three point bezier curve class

Parameters:
Name Type Description
p0 Vector

first point

p1 Vector

second point

p2 Vector

third point

Methods

S M draw( )

The function that draws the bezier curve on the canvas in every frame

S M getPoint( t: number ) → { Vector }

Parameters:
Name Type Description
t number

the time value between 0 and 1

Returns: → { Vector }

the point at the time value

Made By Vedik Dev - Himanshu Jangid
sword-engine Copyright © 2021 Himanshu.
Documentation generated by JSDoc 3.6.7 on Tue Nov 30 2021 23:12:55 GMT+0530 (India Standard Time) using the TSDoc template.