| Modifier and Type | Field and Description |
|---|---|
float |
W
W coordinate
|
float |
X
X coordinate
|
float |
Y
Y coordinate
|
float |
Z
Z coordinate
|
| Constructor and Description |
|---|
Vector4F() |
Vector4F(Color color)
Initializes a new instance of the
Vector4F struct. |
Vector4F(float val)
Initializes a new instance of the
Vector4F struct. |
Vector4F(float x,
float y,
float z,
float w)
Initializes a new instance of the
Vector4F struct. |
Vector4F(Vector4F other)
Initializes a new instance of the
Vector4F struct. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Vector4F |
Clone() |
void |
CloneTo(Vector4F that) |
boolean |
equals(Object obj) |
boolean |
equals(Vector4F other)
Returns a boolean indicating whether the given Vector4F is equal to this Vector4F instance.
|
float |
get_Item(int i)
Gets a coordinate at the specified index.
|
float |
getA()
Alpha component
|
float |
getB()
Blue component
|
float |
getG()
Green component
|
float |
getLength()
Length
|
float |
getR()
Red component
|
float |
getSquareLength()
Square length
|
int |
hashCode()
Returns the hash code for this instance.
|
static boolean |
isEquals(Vector4F obj1,
Vector4F obj2) |
Vector4F |
normalized()
Creates normilized vector.
|
static Vector4F |
op_Addition(Vector4F v1,
Vector4F v2)
Adds two vectors together.
|
static Vector4F |
op_Division(Vector4F v1,
float s)
Divides vector by scalar value.
|
static boolean |
op_Equality(Vector4F v1,
Vector4F v2)
Returns a boolean indicating whether the two given vectors are equal.
|
static boolean |
op_Inequality(Vector4F v1,
Vector4F v2)
Returns a boolean indicating whether the two given vectors are not equal.
|
static Vector4F |
op_Multiply(Vector4F v1,
float s)
Multiplies vector by scalar value.
|
static Vector4F |
op_Subtraction(Vector4F v1,
Vector4F v2)
Subtracts the second vector from the first.
|
Vector4F |
safeNormalized()
Creates normilized vector safely(returns self if length is zero).
|
void |
setA(float value)
Alpha component
|
void |
setB(float value)
Blue component
|
void |
setG(float value)
Green component
|
void |
setR(float value)
Red component
|
Vector2F |
toVector2F()
Creates Vector2F.
|
Vector3F |
toVector3F()
Creates Vector3F.
|
static Vector4F |
zero()
Creates vector with (0, 0, 0).
|
public float X
X coordinate
public float Y
Y coordinate
public float Z
Z coordinate
public float W
W coordinate
public Vector4F()
public Vector4F(float val)
Initializes a new instance of the Vector4F struct.
val - X,Y,Z,W coordinate.public Vector4F(float x,
float y,
float z,
float w)
Initializes a new instance of the Vector4F struct.
x - X coordinate.y - Y coordinate.z - Z coordinate.w - W coordinate.public Vector4F(Vector4F other)
Initializes a new instance of the Vector4F struct.
other - The other vector.public Vector4F(Color color)
Initializes a new instance of the Vector4F struct.
color - Color.public final float getR()
Red component
public final void setR(float value)
Red component
public final float getG()
Green component
public final void setG(float value)
Green component
public final float getB()
Blue component
public final void setB(float value)
Blue component
public final float getA()
Alpha component
public final void setA(float value)
Alpha component
public final float getLength()
Length
public final float getSquareLength()
Square length
public final float get_Item(int i)
Gets a coordinate at the specified index.
i - The index.public final Vector4F normalized()
Creates normilized vector.
public final Vector4F safeNormalized()
Creates normilized vector safely(returns self if length is zero).
public final Vector2F toVector2F()
Creates Vector2F.
public final Vector3F toVector3F()
Creates Vector3F.
public int hashCode()
Returns the hash code for this instance.
public final boolean equals(Vector4F other)
Returns a boolean indicating whether the given Vector4F is equal to this Vector4F instance.
other - Vector4F to compare against.public static boolean op_Equality(Vector4F v1, Vector4F v2)
Returns a boolean indicating whether the two given vectors are equal.
v1 - First vector to compare.v2 - Second vector to compare.public static boolean op_Inequality(Vector4F v1, Vector4F v2)
Returns a boolean indicating whether the two given vectors are not equal.
v1 - First vector to compare.v2 - Second vector to compare.public static Vector4F zero()
Creates vector with (0, 0, 0).
public static Vector4F op_Subtraction(Vector4F v1, Vector4F v2)
Subtracts the second vector from the first.
v1 - First source vector.v2 - Second source vector.public static Vector4F op_Addition(Vector4F v1, Vector4F v2)
Adds two vectors together.
v1 - First source vector.v2 - Second source vector.public static Vector4F op_Multiply(Vector4F v1, float s)
Multiplies vector by scalar value.
v1 - Vector.s - Scalar value.public static Vector4F op_Division(Vector4F v1, float s)
Divides vector by scalar value.
v1 - Vector.s - Scalar value.public void CloneTo(Vector4F that)
CloneTo in class com.aspose.ms.System.ValueType<Vector4F>public boolean equals(Object obj)
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.