Record Class Float4
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.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.booleanisValid()Checks validity of this uv@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 -
MAX_UV
-
-
Constructor Details
-
Float4
-
-
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
-
isValid
public boolean isValid()Checks validity of this uv- Returns:
- is valid
-
toJson
@NotNull public @NotNull com.google.gson.JsonArray toJson()Converts floats to JSON array.- Returns:
- json array
-
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. -
toString
-
dx
-
dz
-
tx
-
tz
-