Skip to content
Riccardo De Maria edited this page Jun 3, 2015 · 4 revisions

#N dimensional generic maps

The maps act in a nD face 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 [] Rotation angle in radians
k float 1 [] cos(angle)

Clone this wiki locally