- class neso_fame.offset.LazyOffset(Generic[T])
Wrap an object to represent it being offset in the x3 direction.
All attribute lookup and function calls will be forwarded to the wrapped object. If the result has an offset method, then it will be called to eagerly evaluate the offset. Otherwise, the results will also be wrapped by a LazyOffset.
Public members¶
- obj : T
Constructors¶
- LazyOffset(obj: T, x3_offset: float)
Wrap the object so that it is lazily offset.
Special methods¶
- __getattr__(name: str) Any
Get an attribute of the wrapped object and offset it.
- __getitem__(index: Any) Any
Try to index the wrapped object and offset the result.
- __repr__()
Return repr(self).
- __eq__(other)
Return self==value.
- __hash__()
Return hash(self).
Methods¶
- final get_underlying_object() Any
Return the object being offset.
Properties¶
Last update:
Nov 07, 2024