Record Class GuiTransform.Projective
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiTransform.Projective
- Record Components:
h00- first-row X coefficienth01- first-row Y coefficienth02- first-row translation coefficienth10- second-row X coefficienth11- second-row Y coefficienth12- second-row translation coefficienth20- homogeneous X coefficienth21- homogeneous Y coefficienth22- homogeneous scale coefficient
- Enclosing class:
GuiTransform
public static record GuiTransform.Projective(float h00, float h01, float h02, float h10, float h11, float h12, float h20, float h21, float h22)
extends Record
Invertible 2D homography used for perspective paint and hit testing.
Coordinates are divided by
h20*x + h21*y + h22.-
Constructor Summary
ConstructorsConstructorDescriptionProjective(float h00, float h01, float h02, float h10, float h11, float h12, float h20, float h21, float h22) Creates an instance of aProjectiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionasAffine()floatfinal booleanIndicates whether some other object is "equal to" this one.booleanfinite()floath00()Returns the value of theh00record component.floath01()Returns the value of theh01record component.floath02()Returns the value of theh02record component.floath10()Returns the value of theh10record component.floath11()Returns the value of theh11record component.floath12()Returns the value of theh12record component.floath20()Returns the value of theh20record component.floath21()Returns the value of theh21record component.floath22()Returns the value of theh22record component.final inthashCode()Returns a hash code value for this object.inverse(float x, float y) multiply(GuiTransform.Projective right) final StringtoString()Returns a string representation of this record class.transform(float x, float y)
-
Constructor Details
-
Projective
public Projective(float h00, float h01, float h02, float h10, float h11, float h12, float h20, float h21, float h22) Creates an instance of aProjectiverecord class.- Parameters:
h00- the value for theh00record componenth01- the value for theh01record componenth02- the value for theh02record componenth10- the value for theh10record componenth11- the value for theh11record componenth12- the value for theh12record componenth20- the value for theh20record componenth21- the value for theh21record componenth22- the value for theh22record component
-
-
Method Details
-
transform
-
inverse
-
asAffine
-
multiply
-
determinant
public float determinant() -
finite
public boolean finite() -
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. -
h00
-
h01
-
h02
-
h10
-
h11
-
h12
-
h20
-
h21
-
h22
-