Record Class CameraOrbit.Target
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.CameraOrbit.Target
- Enclosing class:
CameraOrbit
-
Constructor Summary
ConstructorsConstructorDescriptionTarget(float radius, float yaw, float polar) Creates an instance of aTargetrecord class. -
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.floatpolar()Returns the value of thepolarrecord component.floatradius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.
-
Constructor Details
-
Target
public Target(float radius, float yaw, float polar) Creates an instance of aTargetrecord class.- Parameters:
radius- the value for theradiusrecord componentyaw- the value for theyawrecord componentpolar- the value for thepolarrecord component
-
-
Method Details
-
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. -
radius
public float radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
polar
public float polar()Returns the value of thepolarrecord component.- Returns:
- the value of the
polarrecord component
-