Skip to content
Anshu Aviral edited this page Jun 4, 2015 · 4 revisions

#N dimensional generic maps

The maps act in a nD phace space.

rot2d: compute a 2D rotation

The maps compute a 2D rotation in the plane specified by the coordinate index:

p[i]= cx p[i] * sx p[j]
p[j]=-sx p[i] * cx p[j]
Attribute Type Size Unit Description
angle float 1 [rad] Rotation angle in radians
cx float 1 [] cos(angle)
sx float 1 [] sin(angle)
ij int 2 [] index of the affected coordinates

kick2d: give a kick in 2D

 p[j]+= k p[i] ^ o 
Attribute Type Size Unit Description
ij int 2 [] index of the affected coordinates
o int [] Order of the kick
k float 1 [] Constant of the kick
Clone this wiki locally