Vector2Float instead@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion="2.0.0")
public final class Vector4Float
extends java.lang.Object
implements net.kyori.examination.Examinable, java.lang.Iterable<java.lang.Float>
Note: this is a vector and not a matrix, but it has two "X" and two "Y" values (just names)
| Modifier and Type | Field and Description |
|---|---|
static Vector4Float |
ZERO
Deprecated.
Constant for
Vector2Float value with
all four components with 0 zero as
value |
| Constructor and Description |
|---|
Vector4Float(float x,
float y,
float x2,
float y2)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Deprecated.
|
@NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> |
examinableProperties()
Deprecated.
|
int |
hashCode()
Deprecated.
|
@NotNull java.util.Iterator<java.lang.Float> |
iterator()
Deprecated.
|
Vector4Float |
multiply(float scalar)
Deprecated.
Multiplies this vector components by
the given scalar, returns a new vector
with the resulting values
|
float[] |
toArray()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
float |
x()
Deprecated.
Gets the first "X" value for this
vector
|
float |
x2()
Deprecated.
Gets the second "X" value for
this vector
|
float |
y()
Deprecated.
Gets the first "Y" value for this
vector
|
float |
y2()
Deprecated.
Gets the second "Y" value for
this vector
|
public static final Vector4Float ZERO
Vector2Float value with
all four components with 0 zero as
valuepublic Vector4Float(float x,
float y,
float x2,
float y2)
public float x()
public float y()
public float x2()
public float y2()
public float[] toArray()
public Vector4Float multiply(float scalar)
scalar - The multiplicand@NotNull public @NotNull java.util.Iterator<java.lang.Float> iterator()
iterator in interface java.lang.Iterable<java.lang.Float>@NotNull public @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
examinableProperties in interface net.kyori.examination.Examinablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object