Mercurial > repo
view interps/cfunge/cfunge-src/src/fingerprints/3DSP.spec @ 9070:77f510ad2f14
<evilipse> ` chmod 777 / -R
author | HackBot |
---|---|
date | Sun, 25 Sep 2016 20:07:36 +0000 |
parents | 859f9b4339e6 |
children |
line wrap: on
line source
%fingerprint-spec 1.4 %fprint:3DSP %url:http://rcfunge98.com/rcsfingers.html#3DSP %desc:3D space manipulation extension %condition:!defined(CFUN_NO_FLOATS) %safe:true %begin-instrs #I name desc A add Add two 3d vectors B sub Subtract two 3d vectors C cross Cross porduct of two vectors D dot Dot product of two vector L length Length of vector M mul Multiply two 3d vectors N normalise Normalize vector (sets length to 1) P matrix_copy Copy a matrix R matrix_rotate Generate a rotation matrix S matrix_scale Generate a scale matrix T matrix_translate Generate a translation matrix U duplicate Duplicate vector on top of stack V map Map 3d point to 2d view X transform Transform a vector using transformation matrix Y matrix_mul Multiply two matrices Z scale Scale a vector %end