skeinforge_tools.skeinforge_utilities.vec3 ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/vec3.py |
Vec3 is a three dimensional vector class.
#Class vec3 is deprecated, please use Vec3 instead.
Below are examples of Vec3 use.
>>> from vec3 import Vec3
>>> origin = Vec3()
>>> origin
0.0, 0.0, 0.0
>>> pythagoras = Vec3( 3, 4, 0 )
>>> pythagoras
3.0, 4.0, 0.0
>>> pythagoras.length()
5.0
>>> pythagoras.length2()
25
>>> triplePythagoras = pythagoras.times( 3.0 )
>>> triplePythagoras
9.0, 12.0, 0.0
>>> plane = pythagoras.dropAxis( 2 )
>>> plane
(3+4j)
Modules | ||||||
|
Classes | ||||||||||
|
Data | ||
__author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __credits__ = 'Nophead <http://forums.reprap.org/profile.php?12,28>\nArt of Illusion <http://www.artofillusion.org/>' __date__ = '$Date: 2008/21/04 $' __license__ = 'GPL 3.0' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384) |
Author | ||
Enrique Perez (perez_enrique@yahoo.com) |
Credits | ||
Nophead <http://forums.reprap.org/profile.php?12,28> Art of Illusion <http://www.artofillusion.org/> |