1from __future__
import annotations
3from typing
import TYPE_CHECKING
14 Represents a point in 3D space.
16 @ingroup ids_peak_icv_python_types_geometry
17 @since ids_peak_icv 1.1
20 def __init__(self, x: float, y: float, z: float, intensity: float) ->
None:
23 Creates a point with x, y, z and intensity float channels.
25 @param x: x coordinate
26 @param y: y coordinate
27 @param z: z coordinate
28 @param intensity: intensity meta data
30 @since ids_peak_icv 1.1
32 PointXYZ.__init__(self, x, y, z)
35 def __eq__(self, other: object) -> bool:
38 Check if two points of type PointXYZI are equal.
40 @param other: Another PointXYZI object OR List of coordinates [x, y, z, i] OR Tuple of coordinates (x, y, z, i)
42 @return True if points are equal, False otherwise
44 @since ids_peak_icv 1.1
47 if isinstance(other, PointXYZI):
49 if isinstance(other, list)
or isinstance(other, tuple):
56 def __ne__(self, other: object) -> bool:
59 Check if two points of type peak_icv_point_xyz are not equal.
61 @param other: Another peak_icv_point_xyz
63 @return True if points are not equal, False otherwise
65 @since ids_peak_icv 1.1
69 def __gt__(self, other: object) -> bool:
72 Check if a point of type PointXYZI is greater than another point of type peak_icv_point_xyz.
74 @param other: Another PointXYZI
76 @return True if point of type PointXYZI is greater than, False otherwise
78 @since ids_peak_icv 1.1
81 def gt_point(x: np.float32, y: np.float32, z: np.float32, intensity: float) -> bool:
99 if isinstance(other, PointXYZI):
100 return gt_point(other.x, other.y, other.z, other.intensity)
102 if isinstance(other, list)
or isinstance(other, tuple):
105 return gt_point(other[0], other[1], other[2], other[3])
115 Get a string representation of the PointXYZI.
117 @return String representation of the PointXYZI
119 @since ids_peak_icv 1.1
121 return f
"({self.x:.3f}, {self.y:.3f}, {self.z:.3f}, {self.intensity})"
Represents a point in 3D space.
bool __eq__(self, object other)
Check if two points of type PointXYZ are equal.
bool __ne__(self, object other)
Check if two points of type PointXYZ are not equal.
bool __gt__(self, object other)
Check if a point of type PointXYZ is greater than another point of type PointXYZ.
Represents a point in 3D space.
bool __lt__(self, object other)
bool __eq__(self, object other)
Check if two points of type PointXYZI are equal.
None __init__(self, float x, float y, float z, float intensity)
Creates a point with x, y, z and intensity float channels.
str __str__(self)
Get a string representation of the PointXYZI.
bool __ne__(self, object other)
Check if two points of type peak_icv_point_xyz are not equal.
bool __gt__(self, object other)
Check if a point of type PointXYZI is greater than another point of type peak_icv_point_xyz.