dchip.chipmunk_types

Undocumented in source.

Members

Aliases

M_E
alias M_E = E
M_PI
alias M_PI = PI
cpBool
alias cpBool = bool
Undocumented in source.
cpCollisionID
alias cpCollisionID = uint32_t

Type used internally to cache colliding object info for cpCollideShapes(). Should be at least 32 bits.

cpCollisionType
alias cpCollisionType = uintptr_t

Type used for cpSpace.collision_type.

cpDataPointer
alias cpDataPointer = void*

Type used for user data pointers.

cpFloat
alias cpFloat = float

The floating-point type used internally. By default it is aliased to float.

cpFloat
alias cpFloat = double

The floating-point type used internally. Use the CHIP_USE_DOUBLES version switch to enable this.

cpFloat
alias cpFloat = float
cpGroup
alias cpGroup = uintptr_t

Type used for cpShape.group.

cpHashValue
alias cpHashValue = uintptr_t

Hash value type.

cpLayers
alias cpLayers = uint

Type used for cpShape.layers.

cpTimestamp
alias cpTimestamp = uint

Type used for various timestamps in Chipmunk.

cpfacos
alias cpfacos = acos
Undocumented in source.
cpfacos
alias cpfacos = acos
Undocumented in source.
cpfatan2
alias cpfatan2 = atan2
Undocumented in source.
cpfatan2
alias cpfatan2 = atan2
Undocumented in source.
cpfceil
alias cpfceil = ceil
Undocumented in source.
cpfceil
alias cpfceil = ceil
Undocumented in source.
cpfcos
alias cpfcos = cos
Undocumented in source.
cpfcos
alias cpfcos = cos
Undocumented in source.
cpfexp
alias cpfexp = exp
Undocumented in source.
cpfexp
alias cpfexp = exp
Undocumented in source.
cpffloor
alias cpffloor = floor
Undocumented in source.
cpffloor
alias cpffloor = floor
Undocumented in source.
cpfmod
alias cpfmod = fmod
Undocumented in source.
cpfmod
alias cpfmod = fmod
Undocumented in source.
cpfpow
alias cpfpow = pow
Undocumented in source.
cpfpow
alias cpfpow = pow
Undocumented in source.
cpfsin
alias cpfsin = sin
Undocumented in source.
cpfsin
alias cpfsin = sin
Undocumented in source.
cpfsqrt
alias cpfsqrt = sqrt
Undocumented in source.
cpfsqrt
alias cpfsqrt = sqrt
Undocumented in source.

Functions

cpfabs
cpFloat cpfabs(cpFloat f)

Return the absolute value of a cpFloat.

cpfclamp
cpFloat cpfclamp(cpFloat f, cpFloat min, cpFloat max)

Clamp f to be between min and max.

cpfclamp01
cpFloat cpfclamp01(cpFloat f)

Clamp f to be between 0 and 1.

cpflerp
cpFloat cpflerp(cpFloat f1, cpFloat f2, cpFloat t)

Linearly interpolate (or extrapolate) between f1 and f2 by t percent.

cpflerpconst
cpFloat cpflerpconst(cpFloat f1, cpFloat f2, cpFloat d)

Linearly interpolate from f1 to f2 by no more than d.

cpfmax
cpFloat cpfmax(cpFloat a, cpFloat b)

Return the max of two cpFloats.

cpfmin
cpFloat cpfmin(cpFloat a, cpFloat b)

Return the min of two cpFloats.

Manifest constants

CPFLOAT_MIN
enum CPFLOAT_MIN;
CP_ALL_LAYERS
enum CP_ALL_LAYERS;

Value for cpShape.layers signifying that a shape is in every layer.

CP_NO_GROUP
enum CP_NO_GROUP;

Value for cpShape.group signifying that a shape is in no group.

INFINITY
enum INFINITY;
cpFalse
enum cpFalse;
cpTrue
enum cpTrue;

Type used internally to cache colliding object info for cpCollideShapes(). Should be at least 32 bits.

Structs

cpMat2x2
struct cpMat2x2

Chipmunk's 2D matrix type.

cpVect
struct cpVect

Chipmunk's 2D vector type.

Meta