| | |
- Boost.Python.instance(__builtin__.object)
-
- Point2D
- Point3D
class Point2D(Boost.Python.instance) |
| |
A simple two-dimensional point for vertex positions |
| |
- Method resolution order:
- Point2D
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __getitem__(...)
- __getitem__(self, dim) -> float
Returns the value in the given dimension.
- __init__(...)
- Point2D(x, y)
Creates a new point (x, y).
- __len__(...)
- __len__(self) -> int
Returns the number of dimensions (2).
- __setitem__(...)
- __setitem__(self, dim, value)
Sets the value in a given dimension.
Data and other attributes defined here:
- __instance_size__ = 16
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object at 0x2319b0>
- __new__ = <built-in method __new__ of Boost.Python.class object at 0x5f818c>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class Point3D(Boost.Python.instance) |
| |
A simple three-dimensional point for vertex positions |
| |
- Method resolution order:
- Point3D
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __getitem__(...)
- __getitem__(self, dim) -> float
Returns the value in the given dimension.
- __init__(...)
- Point3D(x, y, z)
Creates a new point (x, y, z).
- __len__(...)
- __len__(self) -> int
Returns the number of dimensions (3).
- __setitem__(...)
- __setitem__(self, dim, value)
Sets the value in a given dimension.
Data and other attributes defined here:
- __instance_size__ = 20
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object at 0x231b10>
- __new__ = <built-in method __new__ of Boost.Python.class object at 0x5f818c>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
| |