mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-08 03:40:27 +01:00
Outdated doc
This commit is contained in:
parent
d64c708c60
commit
e87b3bf9c3
@ -11,9 +11,6 @@ import java.util.function.DoubleUnaryOperator;
|
||||
|
||||
/**
|
||||
* Represents a 3D point.
|
||||
* <p>
|
||||
* Can either be a {@link Pos} or {@link Vec}.
|
||||
* Interface will become {@code sealed} in the future.
|
||||
*/
|
||||
public sealed interface Point permits Vec, Pos {
|
||||
|
||||
|
@ -10,7 +10,7 @@ import java.util.function.DoubleUnaryOperator;
|
||||
/**
|
||||
* Represents a position containing coordinates and a view.
|
||||
* <p>
|
||||
* To become record and primitive.
|
||||
* To become a value then primitive type.
|
||||
*/
|
||||
public record Pos(double x, double y, double z, float yaw, float pitch) implements Point {
|
||||
public static final Pos ZERO = new Pos(0, 0, 0);
|
||||
|
@ -10,7 +10,7 @@ import java.util.function.DoubleUnaryOperator;
|
||||
/**
|
||||
* Represents an immutable 3D vector.
|
||||
* <p>
|
||||
* To become record and primitive.
|
||||
* To become a value then primitive type.
|
||||
*/
|
||||
public record Vec(double x, double y, double z) implements Point {
|
||||
public static final Vec ZERO = new Vec(0);
|
||||
|
Loading…
Reference in New Issue
Block a user