Handbook
Glossary
cpvrotate ( v1: cpVect v2: cpVect -- v3: cpVect )
Vocabulary
chipmunk
.
ffi
Inputs
v1
a
cpVect
v2
a
cpVect
Outputs
v3
a
cpVect
Definition
USING:
accessors
kernel
math
typed
;
IN:
chipmunk.ffi
TYPED:
cpvrotate
( v1: cpVect v2: cpVect -- v3: cpVect )
[
[
[
x>>
]
bi@
*
]
[
[
y>>
]
bi@
*
]
2bi
-
]
[
[
[
x>>
]
[
y>>
]
bi*
*
]
[
[
y>>
]
[
x>>
]
bi*
*
]
2bi
+
]
2bi
cpv
;
inline