Package kr.toxicity.model.api.data.raw
Record Class Float4
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.Float4
- Record Components:
dx- from-xdz- from-ztx- to-xtz- to-z
A four float values (uv)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFloat4(float dx, float dz, float tx, float tz) Creates an instance of aFloat4record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Float4div(float width, float height) Divides floats by width, height@NotNull Float4div(@NotNull ModelResolution resolution) Divides floats by resolution.floatdx()Returns the value of thedxrecord component.floatdz()Returns the value of thedzrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@NotNull com.google.gson.JsonArraytoJson()Converts floats to JSON array.@NotNull StringtoString()Returns a string representation of this record class.floattx()Returns the value of thetxrecord component.floattz()Returns the value of thetzrecord component.
-
Field Details
-
PARSER
Parser
-
-
Constructor Details
-
Method Details
-
div
Divides floats by resolution.- Parameters:
resolution- model resolution- Returns:
- new floats
-
div
Divides floats by width, height- Parameters:
width- widthheight- height- Returns:
- new floats
-
toJson
@NotNull public @NotNull com.google.gson.JsonArray toJson()Converts floats to JSON array.- Returns:
- json array
-
hashCode
public 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 '=='. -
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. -
dx
public float dx()Returns the value of thedxrecord component.- Returns:
- the value of the
dxrecord component
-
dz
public float dz()Returns the value of thedzrecord component.- Returns:
- the value of the
dzrecord component
-
tx
public float tx()Returns the value of thetxrecord component.- Returns:
- the value of the
txrecord component
-
tz
public float tz()Returns the value of thetzrecord component.- Returns:
- the value of the
tzrecord component
-