Handbook
Glossary
cpPolyShapeValueOnAxis ( poly: cpPolyShape n: cpVect d -- min-dist )
Vocabulary
chipmunk
.
ffi
Inputs
poly
a
cpPolyShape
n
a
cpVect
d
an
object
Outputs
min-dist
an
object
Definition
USING:
accessors
alien.data
kernel
math
math.order
sequences
typed
;
IN:
chipmunk.ffi
TYPED:
cpPolyShapeValueOnAxis
( poly: cpPolyShape n: cpVect d -- min-dist )
spin
[
numVerts>>
]
[
tVerts>>
swap
cpVect
<c-direct-array>
]
bi
swap
[
cpvdot
]
curry
[
min
]
reduce
swap
-
;
inline