struct PF::Bezier::Cubic(T)
- PF::Bezier::Cubic(T)
- Struct
- Value
- Object
Included Modules
Defined in:
bezier/cubic.crConstructors
Class Method Summary
- .derivative(t : Float64, p0 : Number, p1 : Number, p2 : Number, p3 : Number)
- .extremeties(p0 : Number, p1 : Number, p2 : Number, p3 : Number)
- .point(t : Float64, p0 : Number, p1 : Number, p2 : Number, p3 : Number)
- .second_derivative(t : Float64, p0 : Number, p1 : Number, p2 : Number, p3 : Number)
Instance Method Summary
-
#at(t : Float64)
Get the point at percentage t < 0 < 1 of the curve
-
#extremeties
Get the points at the extremeties of this curve
-
#normal(t : Float64)
Get the normal to a point at t < 0 < 1 on the spline
- #p0 : Vector2(T)
- #p0=(p0 : Vector2(T))
- #p1 : Vector2(T)
- #p1=(p1 : Vector2(T))
- #p2 : Vector2(T)
- #p2=(p2 : Vector2(T))
- #p3 : Vector2(T)
- #p3=(p3 : Vector2(T))
- #points
-
#tangent(t : Float64)
Get the tangent to a point at t < 0 < 1 on the spline
Instance methods inherited from module PF::Bezier::Aproximations
length(steps : UInt32 = 10)
length
Constructor Detail
Class Method Detail
def self.derivative(t : Float64, p0 : Number, p1 : Number, p2 : Number, p3 : Number)
#
def self.second_derivative(t : Float64, p0 : Number, p1 : Number, p2 : Number, p3 : Number)
#