mahautils.shapes.Point¶
- class mahautils.shapes.Point(units: str | None = None, **kwargs)¶
Bases:
GeometryBase class representing an arbitrary point in a space of an arbitrary number of dimensions
This is a generic class that represents an arbitrary point in any coordinate system. In general, this class should be inherited by other classes and customizations added (for instance, checking that the number of point coordinates match the dimension of the coordinate system).
Notes
The equality operator (
==) is defined for points. Points are considered equal if they are of the same type (Point,CartesianPoint2D, etc.) and if the points’ havecoordinatesattributes of the same shape and values.Attributes
The coordinates of the point
Methods
__init__([units])Creates an instance of a
Pointclass and sets the point coordinates to an empty tupleInherited Attributes
The units in which the geometry is defined
- __init__(units: str | None = None, **kwargs)¶
Creates an instance of a
Pointclass and sets the point coordinates to an empty tuple- Parameters:
units (str, optional) – The units in which the geometry is defined, or
Noneto indicate dimensionless geometry or that units are to be ignored (default isNone)
- property units: str | None¶
The units in which the geometry is defined
- property coordinates: Tuple[float, ...]¶
The coordinates of the point