Module Spyder :: Class Coordinate
[hide private]
[frames] | no frames]

Class Coordinate

source code

object --+
         |
        Coordinate

Spyder-generated class

module tarantula

file /home/sjoerd/Spyder-devel/tarantula/Tarantula.spy

Description

Class for 3D (x,y,z) coordinates.

Coordinates are interpreted as x = right, y = up, z = towards the viewer

Wiki

http://www.spyderware.nl/wiki/classes/Coordinate

Form block

>>>            
DEFAULT x 0
RANGE x 2
DEFAULT y 0    
RANGE y 2
DEFAULT z 0    
RANGE z 2               
>>>

Converters

Can be converted to:

Instance Methods [hide private]
 
__mul__(self, a)
Multiplication with either: a Float (scaling) a Coordinate (dot product) or an AxisSystem (vector-matrix multiplication)
source code
 
__rmul__(self, a)
Inline multiplication
source code
 
__div__(self, a)
Division by Float: equivalent to 1/a multiplication
source code
 
__rdiv__(self, a)
Inline division by Float
source code
 
size(self)
The scalar length of the Coordinate
source code
 
normalize(self)
Re-scale the Coordinate length to 1 , returns Vector
source code
 
crossproduct(self, v)
Returns a Coordinate perpendicular both to this one and to v
source code
 
__xor__(self, v)
Symbol ^, equivalent to crossproduct
source code
 
__neg__(self)
Negation, returns -self
source code
 
__add__(self, a)
Addition of another Coordinate
source code
 
__iadd__(self, a)
Inline addition
source code
 
__sub__(self, a)
Subtraction of another Coordinate
source code
 
__isub__(self, a)
Inline subtraction
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
Float x
Float y
Float z
Properties [hide private]

Inherited from object: __class__