- class adam_sim.entities.point.Point(x: float, y: float, z: float)
a named tuple that contains the information of a 3D point in space
- Attributes:
- xfloat
the x value of the point
- yfloat
the y value of the point
- zfloat
the z value of the point
Methods
- classmethod from_list(list: list) Point
converts a list to a point
- Parameters:
- listlist
the list to convert
- Returns:
- out~.entities.Point
the point
- classmethod from_numpy(array: ndarray) Point
converts a numpy array to a point
- Parameters:
- arraynumpy.ndarray
the numpy array to convert
- Returns:
- out~.entities.Point
the point
- round(n: int = 4) Point
rounds the point to the specified number of decimal places
- Parameters:
- nint
the number of decimal places to round to
- Returns:
- out~.entities.Point
the rounded point
- to_list() list
converts the point to a list
- Returns:
- outlist
the point as a list
- to_numpy() ndarray
converts the point to a numpy array
- Returns:
- outnumpy.ndarray
the point as a numpy array
- x: float
Alias for field number 0
- y: float
Alias for field number 1
- z: float
Alias for field number 2