public final class FVector2 extends java.lang.Object implements com.aspose.threed.Struct<FVector2>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
float |
x
The x component.
|
float |
y
The y component.
|
| Constructor and Description |
|---|
FVector2() |
FVector2(float x,
float y)
Initializes a new instance of the
FVector2. |
FVector2(Vector2 vec)
Initializes a new instance of the
FVector2. |
| Modifier and Type | Method and Description |
|---|---|
FVector2 |
clone() |
void |
copyFrom(FVector2 src) |
static Vector2 |
create(FVector2 v)
Explicit conversion operator to cast FVector2 to Vector2
|
boolean |
equals(FVector2 rhs)
Check if two vectors are equal
|
boolean |
equals(java.lang.Object obj)
Check if two vectors are equal
|
int |
hashCode()
Gets the hash code of this instance
|
static boolean |
op_eq(FVector2 a,
FVector2 b)
== Operator overloading
|
static boolean |
op_ne(FVector2 a,
FVector2 b)
!= Operator overloading
|
static FVector2 |
sub(FVector2 a,
FVector2 b)
- Operator overloading
|
java.lang.String |
toString()
Returns a string that represents the
FVector2 |
public FVector2(float x,
float y)
FVector2.public FVector2()
public static Vector2 create(FVector2 v)
v - public java.lang.String toString()
FVector2toString in class java.lang.Objectpublic boolean equals(FVector2 rhs)
rhs - public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - public static boolean op_eq(FVector2 a, FVector2 b)
a - b - public static boolean op_ne(FVector2 a, FVector2 b)
a - b - public FVector2 clone()
clone in interface com.aspose.threed.Struct<FVector2>clone in class java.lang.Objectpublic void copyFrom(FVector2 src)
copyFrom in interface com.aspose.threed.Struct<FVector2>public int hashCode()
hashCode in class java.lang.Object