Record Class CameraAimAssistFrustum.Plane
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.CameraAimAssistFrustum.Plane
- Enclosing class:
CameraAimAssistFrustum
public static record CameraAimAssistFrustum.Plane(float x, float y, float z, float offset)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPlane(float x, float y, float z, float offset) Creates an instance of aPlanerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(CameraPose.Vector point) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.floatz()Returns the value of thezrecord component.
-
Constructor Details
-
Plane
public Plane(float x, float y, float z, float offset) Creates an instance of aPlanerecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentoffset- the value for theoffsetrecord component
-
-
Method Details
-
contains
-
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
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public float z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
offset
public float offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-