Package slum :: Module datatypes :: Class vector
[hide private]
[frames] | no frames]

Class vector

source code

color --+
        |
       vector
Known Subclasses:

slum datatype to hold vector data. its derivated from color, overriding the internal to x,y,z. also, theres 2 added method to manipulate vectors: lenght and normalize

Instance Methods [hide private]
 
length(self) source code
 
normalize(self) source code

Inherited from color: __add__, __delitem__, __div__, __getitem__, __init__, __len__, __mul__, __neg__, __repr__, __setitem__, __sub__, checkKey, checkValue

Class Variables [hide private]
  internal = ['x', 'y', 'z']