struct PF2d::QuadSpline(T)

Overview

Quadratic spline It is assumed that every other point is an off-curve point starting with an on-curve point

Defined in:

pf2d/quad_spline.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(points : Indexable::Mutable(PF2d::Vec2(T))) #

[View source]
def self.new #

[View source]
def self.new(*points : Vec2(T)) #

[View source]

Instance Method Detail

def %(value) #

Applies % to all points in this spline


[View source]
def *(value) #

Applies #* to all points in this spline


[View source]
def **(value) #

Applies #** to all points in this spline


[View source]
def +(value) #

Applies #+ to all points in this spline


[View source]
def -(value) #

Applies #- to all points in this spline


[View source]
def /(value) #

Applies #/ to all points in this spline


[View source]
def //(value) #

Applies #// to all points in this spline


[View source]
def closed_curves(&) #

Yield quad curves for each set of 3 points, wrapping to the beginning


[View source]
def closed_rect #

[View source]
def curves(&) #

Yield quad curves for each set of 3 points


[View source]
def horizontal_intersects(y, &) #

[View source]
def merge(other) #

[View source]
def points : Indexable::Mutable(Vec2(T)) #

[View source]
def points=(points : Indexable::Mutable(Vec2(T))) #

[View source]
def rect #

[View source]