22 public PointXYZI(
float x,
float y,
float z, ushort intensity)
34 public float X {
get;
set; }
40 public float Y {
get;
set; }
46 public float Z {
get;
set; }
58 public static IEqualityComparer<PointXYZI>
Comparer {
get; } =
new PointXYZIEqualityComparer();
69 return $
"X: {X}, Y: {Y}, Z: {Z}, Intensity: {Intensity}";
72 private sealed class PointXYZIEqualityComparer : IEqualityComparer<PointXYZI>
76 if (ReferenceEquals(x, y))
81 if (ReferenceEquals(x,
null))
86 if (ReferenceEquals(y,
null))
94 public int GetHashCode(PointXYZI obj)
96 return (obj.X, obj.Y, obj.Z, obj.Intensity).GetHashCode();
Represents a 3D point with floating-point coordinates (X, Y, Z) and intensity value.
ushort Intensity
Gets or sets the intensity of the point.
PointXYZI(float x, float y, float z, ushort intensity)
Initializes a new instance of the PointXYZI class with specified coordinates.
float Z
Gets or sets the Z coordinate of the point.
override string ToString()
Returns a string representation of the point.
float X
Gets or sets the X coordinate of the point.
static IEqualityComparer< PointXYZI > Comparer
Gets a default equality comparer for comparing PointXYZI data values.
float Y
Gets or sets the Y coordinate of the point.