The _VDAxis class represents a single coordinate-axis. It provides the
functionality needed to map between the array- and world-coordinates
along this axis.
|
|
__init__(self,
N,
resolution,
origin)
This function creates a new _VDAxis object. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
IsCompatible(self,
axis)
This function can be used to test whether axis is compatible with
this _VDAxis. |
|
|
float
|
ToArrayCoordinate(self,
world)
Converts the specified world-coordinate to an array-coordinate. |
|
|
float
|
ToWorldCoordinate(self,
array)
Converts the specified array-coordinate to a world-coordinate. |
|
|
bool
|
InBounds(self,
world)
Tests whether the world-coordinate corresponds to a position along
the array-coordinate axis that is in bounds. |
|
|
iterator< int >
|
ArrayCoordinates(self)
This function returns an iterator that provides the valid
array-coordinates for this _VDAxis. |
|
|
iterator< float >
|
WorldCoordinates(self)
This function returns an iterator that provides the world-coordinates
represented by the valid array-coordinates along this _VDAxis. |
|
|
iterator< tuple< int, float > >
|
Coordinates(self)
This function returns an iterator which when de-referenced provides a
tuple of the form tuple< int, float >. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|