| Modifier and Type | Field and Description |
|---|---|
float |
X
X coordinate
|
float |
Y
Y coordinate
|
float |
Z
Z coordinate
|
| Constructor and Description |
|---|
Vector3F() |
Vector3F(float val)
Initializes a new instance of the
Vector3F struct. |
Vector3F(float x,
float y,
float z)
Initializes a new instance of the
Vector3F struct. |
Vector3F(Vector3F other)
Initializes a new instance of the
Vector3F struct. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Vector3F |
Clone() |
void |
CloneTo(Vector3F that) |
static Vector3F |
crossProduct(Vector3F v1,
Vector3F v2)
Returns the cross product of two vectors.
|
static float |
dotProduct(Vector3F v1,
Vector3F v2)
Returns the dot product of two vectors.
|
boolean |
equals(Object obj) |
boolean |
equals(Vector3F other)
Returns a boolean indicating whether the given Vector3F is equal to this Vector3F instance.
|
float |
get_Item(int i)
Gets a coordinate at the specified index.
|
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(Vector3F obj1,
Vector3F obj2) |
static Vector3F |
newellFaceNormal(List<Vector3F> vertices,
List<Integer> face)
Calculates normal of face by newell's method.
|
Vector3F |
normalized()
Creates normilized vector.
|
static Vector3F |
op_Addition(Vector3F v1,
Vector3F v2)
Adds two vectors together.
|
static boolean |
op_Equality(Vector3F v1,
Vector3F v2)
Returns a boolean indicating whether the two given vectors are equal.
|
static boolean |
op_Inequality(Vector3F v1,
Vector3F v2)
Returns a boolean indicating whether the two given vectors are not equal.
|
static Vector3F |
op_Multiply(float s,
Vector3F v1)
Multiplies vector by scalar value.
|
static Vector3F |
op_Multiply(Vector3F v1,
float s)
Multiplies vector by scalar value.
|
static Vector3F |
op_Multiply(Vector3F v1,
Vector3F v2)
Subtracts the second vector from the first.
|
static Vector3F |
op_Subtraction(Vector3F v1,
Vector3F v2)
Subtracts the second vector from the first.
|
static Vector3F |
op_UnaryNegation(Vector3F v1)
Negates a given vector.
|
static Vector3F |
reflect(Vector3F vector,
Vector3F normal)
Calculates a reflected vector.
|
Vector3F |
safeNormalized()
Creates normilized vector safely(returns self if length is zero).
|
void |
setB(float value)
Blue component
|
void |
setG(float value)
Green component
|
void |
setR(float value)
Red component
|
Vector2F |
to2F()
Creates Vector2F.
|
Vector4F |
toVector4F(float w)
Creates Vector4F.
|
static Vector3F |
XAxis()
Creates x-axis.
|
static Vector3F |
YAxis()
Creates y-axis.
|
static Vector3F |
ZAxis()
Creates z-axis.
|
static Vector3F |
zero()
Creates vector with (0, 0, 0).
|
public float X
X coordinate
public float Y
Y coordinate
public float Z
Z coordinate
public Vector3F()
public Vector3F(float x,
float y,
float z)
Initializes a new instance of the Vector3F struct.
x - X coordinate.y - Y coordinate.z - Z coordinate.public Vector3F(Vector3F other)
Initializes a new instance of the Vector3F struct.
other - The other vector.public Vector3F(float val)
Initializes a new instance of the Vector3F struct.
val - X,Y,Z coordinate.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 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 Vector2F to2F()
Creates Vector2F.
public final Vector3F normalized()
Creates normilized vector.
public final Vector3F safeNormalized()
Creates normilized vector safely(returns self if length is zero).
public final Vector4F toVector4F(float w)
Creates Vector4F.
w - W coordinate.public final boolean equals(Vector3F other)
Returns a boolean indicating whether the given Vector3F is equal to this Vector3F instance.
other - Vector3F to compare against.public int hashCode()
Returns the hash code for this instance.
public static boolean op_Equality(Vector3F v1, Vector3F 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(Vector3F v1, Vector3F 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 Vector3F zero()
Creates vector with (0, 0, 0).
public static Vector3F XAxis()
Creates x-axis.
public static Vector3F YAxis()
Creates y-axis.
public static Vector3F ZAxis()
Creates z-axis.
public static Vector3F op_UnaryNegation(Vector3F v1)
Negates a given vector.
v1 - Source vector.public static Vector3F op_Subtraction(Vector3F v1, Vector3F v2)
Subtracts the second vector from the first.
v1 - First source vector.v2 - Second source vector.public static Vector3F op_Addition(Vector3F v1, Vector3F v2)
Adds two vectors together.
v1 - First source vector.v2 - Second source vector.public static Vector3F op_Multiply(float s, Vector3F v1)
Multiplies vector by scalar value.
s - Scalar value.v1 - Vector.public static Vector3F op_Multiply(Vector3F v1, float s)
Multiplies vector by scalar value.
v1 - Vector.s - Scalar value.public static Vector3F op_Multiply(Vector3F v1, Vector3F v2)
Subtracts the second vector from the first.
v1 - First source vector.v2 - Second source vector.public static float dotProduct(Vector3F v1, Vector3F v2)
Returns the dot product of two vectors.
v1 - First vector.v2 - Second vector.public static Vector3F crossProduct(Vector3F v1, Vector3F v2)
Returns the cross product of two vectors.
v1 - First vector.v2 - Second vector.public static Vector3F newellFaceNormal(List<Vector3F> vertices, List<Integer> face)
Calculates normal of face by newell's method.
vertices - Vertices.face - Face.public static Vector3F reflect(Vector3F vector, Vector3F normal)
Calculates a reflected vector.
vector - Vector.normal - Normal.public void CloneTo(Vector3F that)
CloneTo in class com.aspose.ms.System.ValueType<Vector3F>public boolean equals(Object obj)
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.