| Modifier and Type | Field and Description |
|---|---|
float |
X
X coordinate
|
float |
Y
Y coordinate
|
| Constructor and Description |
|---|
Vector2F() |
Vector2F(float x,
float y)
Initializes a new instance of the
Vector2F struct. |
Vector2F(Vector2F other)
Initializes a new instance of the
Vector2F struct. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Vector2F |
Clone() |
void |
CloneTo(Vector2F that) |
static float |
dotProduct(Vector2F v1,
Vector2F v2)
Returns the dot product of two vectors.
|
boolean |
equals(Object obj) |
boolean |
equals(Vector2F other)
Returns a boolean indicating whether the given Vector2F is equal to this Vector2F instance.
|
float |
getLength()
Length
|
float |
getSquareLength()
Square length
|
int |
hashCode()
Returns the hash code for this instance.
|
static boolean |
isEquals(Vector2F obj1,
Vector2F obj2) |
static Vector2F |
op_Addition(Vector2F v1,
Vector2F v2)
Adds two vectors together.
|
static boolean |
op_Equality(Vector2F v1,
Vector2F v2)
Returns a boolean indicating whether the two given vectors are equal.
|
static boolean |
op_Inequality(Vector2F v1,
Vector2F v2)
Returns a boolean indicating whether the two given vectors are not equal.
|
static Vector2F |
op_Multiply(Vector2F v1,
float s)
Multiplies vector by scalar value.
|
static Vector2F |
op_Subtraction(Vector2F v1,
Vector2F v2)
Subtracts the second vector from the first.
|
public Vector2F()
public Vector2F(float x,
float y)
Initializes a new instance of the Vector2F struct.
x - X coordinate.y - Y coordinate.public Vector2F(Vector2F other)
Initializes a new instance of the Vector2F struct.
other - The other vector.public final float getLength()
Length
public final float getSquareLength()
Square length
public final boolean equals(Vector2F other)
Returns a boolean indicating whether the given Vector2F is equal to this Vector2F instance.
other - Vector2F to compare against.public int hashCode()
Returns the hash code for this instance.
public static boolean op_Equality(Vector2F v1, Vector2F 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(Vector2F v1, Vector2F 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 float dotProduct(Vector2F v1, Vector2F v2)
Returns the dot product of two vectors.
v1 - First vector.v2 - Second vector.public static Vector2F op_Multiply(Vector2F v1, float s)
Multiplies vector by scalar value.
v1 - Vector.s - Scalar value.public static Vector2F op_Subtraction(Vector2F v1, Vector2F v2)
Subtracts the second vector from the first.
v1 - First source vector.v2 - Second source vector.public static Vector2F op_Addition(Vector2F v1, Vector2F v2)
Adds two vectors together.
v1 - First source vector.v2 - Second source vector.public void CloneTo(Vector2F that)
CloneTo in class com.aspose.ms.System.ValueType<Vector2F>public boolean equals(Object obj)
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.