Module vector3
source code
Vector3 is a three dimensional vector class.
Below are examples of Vector3 use.
>>> from vector3 import Vector3
>>> origin = Vector3()
>>> origin
0.0, 0.0, 0.0
>>> pythagoras = Vector3( 3, 4, 0 )
>>> pythagoras
3.0, 4.0, 0.0
>>> pythagoras.magnitude()
5.0
>>> pythagoras.magnitudeSquared()
25
>>> triplePythagoras = pythagoras * 3.0
>>> triplePythagoras
9.0, 12.0, 0.0
>>> plane = pythagoras.dropAxis()
>>> plane
(3+4j)
Date:
$Date: 2008/21/04 $
Author:
Enrique Perez (perez_enrique@yahoo.com)
License:
GNU Affero General Public License
http://www.gnu.org/licenses/agpl.html
|
Vector3
A three dimensional vector class.
|
|
__credits__ = ' Nophead <http://forums.reprap.org/profile.php?1 ...
|
|
globalGetAccessibleAttributeSet = [ ' x ' , ' y ' , ' z ' ]
|
|
globalSetAccessibleAttributeSet = [ ' x ' , ' y ' , ' z ' ]
|
|
__package__ = ' fabmetheus_utilities '
|
__credits__
- Value:
''' Nophead <http://forums.reprap.org/profile.php?12,28>
Art of Illusion <http://www.artofillusion.org/> '''
|
|