Package gaiasky.data.util
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public double z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
seconds
public long seconds()Returns the value of thesecondsrecord component.- Returns:
- the value of the
secondsrecord component
-
nanos
public int nanos()Returns the value of thenanosrecord component.- Returns:
- the value of the
nanosrecord component
-