Skip to main content

Cocos2D.CCSplineMath


Class CCSplineMath

Namespace: Cocos2D
Assembly: Cocos2D.dll, cocos2d_mono.Core.Android.dll, cocos2d_mono.Core.DesktopGL.dll, cocos2d-mono.Core.iOS.dll, cocos2d_mono.Core.Linux.dll, cocos2d_mono.Core.macOS.dll, cocos2d_mono.Windows.dll, cocos2d_mono.DesktopGL.dll, cocos2d-mono.iOS.dll, cocos2d_mono.Linux.dll, cocos2d_mono.macOS.dll

public static class CCSplineMath

Inheritance

objectCCSplineMath

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

See http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

Control point 1

p1 CCPoint

Control point 2

p2 CCPoint

Control point 3

p3 CCPoint

Control point 4

tension float

The parameter c is a tension parameter that must be in the interval (0,1). In some sense, this can be interpreted as the "length" of the tangent. c=1 will yield all zero tangents, and c=0 yields a Catmull�Rom spline.

t float

Time along the spline

Returns

CCPoint

The point along the spline for the given time (t)

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

See http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

Control point 1

p1 CCPoint

Control point 2

p2 CCPoint

Control point 3

p3 CCPoint

Control point 4

tension float

The parameter c is a tension parameter that must be in the interval (0,1). In some sense, this can be interpreted as the "length" of the tangent. c=1 will yield all zero tangents, and c=0 yields a Catmull�Rom spline.

t float

Time along the spline

Returns

CCPoint

The point along the spline for the given time (t)

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)

public static CCPoint CCCardinalSplineAt(CCPoint p0, CCPoint p1, CCPoint p2, CCPoint p3, float tension, float t)

Parameters

p0 CCPoint

p1 CCPoint

p2 CCPoint

p3 CCPoint

tension float

t float

Returns

CCPoint

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

CubicBezier(float, float, float, float, float)

public static float CubicBezier(float a, float b, float c, float d, float t)

Parameters

a float

b float

c float

d float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

QuadBezier(float, float, float, float)

public static float QuadBezier(float a, float b, float c, float t)

Parameters

a float

b float

c float

t float

Returns

float

  • Methods
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CCCardinalSplineAt(CCPoint, CCPoint, CCPoint, CCPoint, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • CubicBezier(float, float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)
    • QuadBezier(float, float, float, float)