Package pytilities :: Package geometry :: Module immutablevector :: Class ImmutableVector
[hide private]
[frames] | no frames]

Class ImmutableVector

source code

                                     object --+    
                                              |    
attributecollectionbase.AttributeCollectionBase --+
                                                  |
                                                 ImmutableVector

Vector wrapper that makes the vector immutable.

It supports all immutable attributes of Vector. All tries to mutate the vector will result in exceptions.

For Vector specific documentation, see Vector.

Instance Methods [hide private]
 
__init__(self, v)
v:Vector -- the vector to wrap
source code
 
move_to(self, *args) source code
 
move_by(self, *args) source code
 
assign(self, v) source code
 
normalize(self) source code
 
__isub__(self, other) source code
 
__idiv__(self, other) source code
 
__iadd__(self, other) source code
 
__imul__(self, other) source code

Inherited from attributecollectionbase.AttributeCollectionBase: __abs__, __add__, __copy__, __delattr__, __div__, __eq__, __floordiv__, __getattr__, __getitem__, __iter__, __len__, __mul__, __neg__, __neq__, __nonzero__, __pos__, __rdiv__, __rfloordiv__, __rmul__, __rtruediv__, __setattr__, __setitem__, __str__, __sub__, __truediv__

Inherited from object: __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __subclasshook__

Properties [hide private]
  x
  y
  length

Inherited from object: __class__

Method Details [hide private]

__init__(self, v)
(Constructor)

source code 
v:Vector -- the vector to wrap
Overrides: object.__init__

__iadd__(self, other)

source code 
Overrides: attributecollectionbase.AttributeCollectionBase.__iadd__

__imul__(self, other)

source code 
Overrides: attributecollectionbase.AttributeCollectionBase.__imul__

Property Details [hide private]

x

Get Method:
unreachable.x(self)
Set Method:
unreachable.x(self, value)

y

Get Method:
unreachable.y(self)
Set Method:
unreachable.y(self, value)

length

Get Method:
unreachable.length(self)
Set Method:
unreachable.length(self, value)