struct PF::Bezier::Quad(T)

Included Modules

Defined in:

bezier/quad.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module PF::Bezier::Aproximations

length(steps : UInt32 = 10) length

Constructor Detail

def self.new(p0 : Vector2(T), p1 : Vector2(T), p2 : Vector2(T)) #

[View source]

Class Method Detail

def self.point(t : Float64, p0 : Number, p1 : Number, p2 : Number) #

[View source]

Instance Method Detail

def at(t : Float64) #

Get the point at percentage t of the curve


[View source]
def p0 : Vector2(T) #

[View source]
def p0=(p0 : Vector2(T)) #

[View source]
def p1 : Vector2(T) #

[View source]
def p1=(p1 : Vector2(T)) #

[View source]
def p2 : Vector2(T) #

[View source]
def p2=(p2 : Vector2(T)) #

[View source]
def points #

[View source]