Trees | Indices | Help |
---|
|
Vector class, including rotation-related functions.
|
|||
Vector 3D vector |
|
|||
float |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
3x3 Numeric array |
|
||
|
|
|||
arccos = <ufunc 'arccos'>
|
|||
cos = <ufunc 'cos'>
|
|||
pi = 3.14159265359
|
|||
sin = <ufunc 'sin'>
|
|||
sqrt = <ufunc 'sqrt'>
|
|
Calculate the angle between 3 vectors representing 3 connected points.
|
Calculate the dihedral angle between 4 vectors representing 4 connected points. The angle is in ]-pi, pi].
|
Return a (left multiplying) matrix that mirrors p onto q. Example: >>> mirror=refmat(p,q) >>> qq=p.left_multiply(mirror) >>> print q, qq # q and qq should be the same
|
Calculate a left multiplying rotation matrix that rotates theta rad around vector. Example: >>> m=rotaxis(pi, Vector(1,0,0)) >>> rotated_vector=any_vector.left_multiply(m)
|
Calculate a left multiplying rotation matrix that rotates theta rad around vector. Example: >>> m=rotaxis(pi, Vector(1,0,0)) >>> rotated_vector=any_vector.left_multiply(m)
|
Return a (left multiplying) matrix that rotates p onto q. Example: >>> r=rotmat(p,q) >>> print q, p.left_multiply(r) |
Returns the vector between a point and the closest point on a line (ie. the perpendicular projection of the point on the line). |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Sep 15 09:22:37 2008 | http://epydoc.sourceforge.net |