Record Class PointCloudData.PointSample
java.lang.Object
java.lang.Record
gaiasky.data.util.PointCloudData.PointSample
- Record Components:
x- The X component.y- The Y component.z- The Z component.seconds- The amount of seconds sinceInstant.EPOCH. If this is equal toLong.MIN_VALUE, time is ignored.nanos- The nanoseconds in the second.
- Enclosing class:
PointCloudData
public static record PointCloudData.PointSample(double x, double y, double z, long seconds, int nanos)
extends Record
A sample in the point cloud.
-
Constructor Summary
ConstructorsConstructorDescriptionPointSample(double x, double y, double z) PointSample(double x, double y, double z, long seconds, int nanos) Creates an instance of aPointSamplerecord class.PointSample(double x, double y, double z, Instant t) PointSample(Vector3D v, Instant t) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnanos()Returns the value of thenanosrecord component.voidput(com.badlogic.gdx.math.Vector3 v) voidvoidlongseconds()Returns the value of thesecondsrecord component.longfinal StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
PointSample
public PointSample(double x, double y, double z) -
PointSample
-
PointSample
-
PointSample
-
PointSample
public PointSample(double x, double y, double z, long seconds, int nanos) Creates an instance of aPointSamplerecord class.
-
-
Method Details
-
put
public void put(com.badlogic.gdx.math.Vector3 v) -
put
-
put
-
toEpochMilli
public long toEpochMilli() -
toInstant
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
x
-
y
-
z
-
seconds
-
nanos
-