struct PF2d::Bezier::Quad(T)

Defined in:

pf2d/bezier/quad.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct PF2d::Bezier::Curve(T)

at(t : Float64) : Vec2(T) at, control_points : Tuple(Vec2(T), Vec2(T)) control_points, extrema(&) extrema, horizontal_intersects(y, &) horizontal_intersects, initialize initialize, length(steps : UInt32 = 10) length, normal(t : Float64) normal, points points, rect rect, tangent(t : Float64) tangent, x_values x_values, y_values y_values

Constructor methods inherited from struct PF2d::Bezier::Curve(T)

new new

Constructor Detail

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

[View source]

Class Method Detail

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

[View source]
def self.extrema(p0 : Number, p1 : Number, p2 : Number, &) #

[View source]
def self.interpolate(t : Float64, p0 : Number, p1 : Number, p2 : Number) #

[View source]
def self.roots(p0 : Number, p1 : Number, p2 : Number, &) #

Solves roots so that t = 0


[View source]
def self.second_derivative(p0 : Number, p1 : Number, p2 : Number) #

[View source]

Instance Method Detail

def control_point_pointers : Tuple(Pointer(Vec2(T)), Pointer(Vec2(T))) #

[View source]
def control_points : Tuple(Vec2(T), Vec2(T)) #

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

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

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

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

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

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

[View source]
def point_pointers #

[View source]
def points #

[View source]
def to_f #

[View source]
def to_f32 #

[View source]
def to_f64 #

[View source]
def to_i #

[View source]
def to_i128 #

[View source]
def to_i16 #

[View source]
def to_i32 #

[View source]
def to_i64 #

[View source]
def to_i8 #

[View source]
def to_u #

[View source]
def to_u128 #

[View source]
def to_u16 #

[View source]
def to_u32 #

[View source]
def to_u64 #

[View source]
def to_u8 #

[View source]