Documentation
¶
Index ¶
- func Cubic(t, p0, p1, p2, p3 float64) float64
- func CubicBezierCurve2DSampler(p0, p1, p2, p3 vector2.Float64) sample.FloatToVec2
- func CubicBezierCurve3DSampler(p0, p1, p2, p3 vector3.Float64) sample.FloatToVec3
- func PowerIn(power int) sample.FloatToFloat
- func PowerInOut(power int) sample.FloatToFloat
- func PowerOut(power int) sample.FloatToFloat
- type CatmullRomCurve
- type CatmullRomCurveParameters
- type CatmullRomSpline
- type CatmullRomSplineNode
- type CatmullRomSplineParameters
- type CubicCurve
- type Curve
- type LengthNode
- type PositionNode
- type PositionsForArrayNode
- type Spline
- type TangentNode
- type TangentsForArrayNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CubicBezierCurve2DSampler ¶ added in v0.18.0
func CubicBezierCurve2DSampler(p0, p1, p2, p3 vector2.Float64) sample.FloatToVec2
func CubicBezierCurve3DSampler ¶ added in v0.18.0
func CubicBezierCurve3DSampler(p0, p1, p2, p3 vector3.Float64) sample.FloatToVec3
func PowerIn ¶
func PowerIn(power int) sample.FloatToFloat
func PowerInOut ¶
func PowerInOut(power int) sample.FloatToFloat
func PowerOut ¶
func PowerOut(power int) sample.FloatToFloat
Types ¶
type CatmullRomCurve ¶ added in v0.18.0
type CatmullRomCurve struct {
// contains filtered or unexported fields
}
func (*CatmullRomCurve) Distance ¶ added in v0.18.0
func (crc *CatmullRomCurve) Distance(distance float64) vector3.Float64
func (*CatmullRomCurve) Length ¶ added in v0.18.0
func (crc *CatmullRomCurve) Length() float64
type CatmullRomCurveParameters ¶ added in v0.18.0
type CatmullRomCurveParameters struct {
P0, P1, P2, P3 vector3.Float64
Alpha float64
Epsilon float64
}
func (CatmullRomCurveParameters) Curve ¶ added in v0.18.0
func (crcp CatmullRomCurveParameters) Curve() CatmullRomCurve
type CatmullRomSpline ¶ added in v0.18.0
type CatmullRomSpline struct {
// contains filtered or unexported fields
}
func (*CatmullRomSpline) At ¶ added in v0.18.0
func (crc *CatmullRomSpline) At(distance float64) vector3.Float64
func (*CatmullRomSpline) Length ¶ added in v0.18.0
func (crc *CatmullRomSpline) Length() float64
type CatmullRomSplineNode ¶ added in v0.18.0
type CatmullRomSplineNode struct {
Points nodes.Output[[]vector3.Float64] `description:"points that form the curve"`
Alpha nodes.Output[float64] `description:"0.5 for the centripetal spline, 0.0 for the uniform spline, 1.0 for the chordal spline"`
Closed nodes.Output[bool] `description:"whether or not to close the curve to form a loop"`
}
func (CatmullRomSplineNode) Out ¶ added in v0.32.0
func (r CatmullRomSplineNode) Out(out *nodes.StructOutput[Spline])
type CatmullRomSplineParameters ¶ added in v0.18.0
type CatmullRomSplineParameters struct {
Points []vector3.Float64
Alpha float64
Epsilon float64
Closed bool
}
func (CatmullRomSplineParameters) Spline ¶ added in v0.18.0
func (crcp CatmullRomSplineParameters) Spline() CatmullRomSpline
type CubicCurve ¶
type LengthNode ¶ added in v0.18.0
func (LengthNode) Out ¶ added in v0.32.0
func (ln LengthNode) Out(out *nodes.StructOutput[float64])
type PositionNode ¶ added in v0.32.0
type PositionNode struct {
Spline nodes.Output[Spline]
Distance nodes.Output[float64] `description:"distance along the spline where the point lies"`
}
func (PositionNode) Position ¶ added in v0.32.0
func (tn PositionNode) Position(out *nodes.StructOutput[vector3.Float64])
type PositionsForArrayNode ¶ added in v0.32.0
type PositionsForArrayNode struct {
Spline nodes.Output[Spline]
Distances nodes.Output[[]float64] `description:"distances along the spline where the points lie"`
}
func (PositionsForArrayNode) Position ¶ added in v0.32.0
func (tn PositionsForArrayNode) Position(out *nodes.StructOutput[[]vector3.Float64])
type TangentNode ¶ added in v0.32.0
type TangentNode struct {
Spline nodes.Output[Spline]
Distance nodes.Output[float64] `description:"distance the point is along the spline where we take the tangent"`
}
func (TangentNode) Tangent ¶ added in v0.32.0
func (tn TangentNode) Tangent(out *nodes.StructOutput[vector3.Float64])
type TangentsForArrayNode ¶ added in v0.32.0
type TangentsForArrayNode struct {
Spline nodes.Output[Spline]
Times nodes.Output[[]float64] `description:"distances the points are along the spline where we take the tangents"`
}
func (TangentsForArrayNode) Tangents ¶ added in v0.32.0
func (tn TangentsForArrayNode) Tangents(out *nodes.StructOutput[[]vector3.Float64])
Click to show internal directories.
Click to hide internal directories.