Record Class Float2
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.Float2
- Record Components:
x- the x valuey- the y value
A simple record representing two float values.
- Since:
- 3.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.final StringtoString()Returns a string representation of this record class.@NotNull org.joml.Vector2ftoVector()Converts this record to aVector2f.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Field Details
-
PARSER
-
-
Constructor Details
-
Float2
-
-
Method Details
-
toVector
@NotNull public @NotNull org.joml.Vector2f toVector()Converts this record to aVector2f.- Returns:
- a new vector instance
- Since:
- 3.0.0
-
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
-