FVector2

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable

public final class FVector2 implements Struct<FVector2>, Serializable

Un vecteur flottant à deux composants.

Constructeurs

ConstructeurDescription
FVector2(float x, float y)Initialise une nouvelle instance de FVector2.
FVector2(Vector2 vec)Initialise une nouvelle instance de FVector2.
FVector2()

Champs

ChampDescription
xLe composant x.
yLe composant y.

Méthodes

MéthodeDescription
add(FVector2 a, FVector2 b)+ Surcharge d’opérateur
clone()
copyFrom(FVector2 src)
create(FVector2 v)Opérateur de conversion explicite pour convertir FVector2 en Vector2
equals(FVector2 rhs)Vérifier si deux vecteurs sont égaux
equals(Object obj)Vérifier si deux vecteurs sont égaux
getClass()
hashCode()Obtient le code de hachage de cette instance
mul(FVector2 a, float b)* surcharge d’opérateur
notify()
notifyAll()
op_eq(FVector2 a, FVector2 b)== Surcharge d’opérateur
op_ne(FVector2 a, FVector2 b)!= Surcharge d’opérateur
sub(FVector2 a, FVector2 b)- Surcharge d’opérateur
toString()Renvoie une chaîne qui représente le FVector2
wait()
wait(long arg0)
wait(long arg0, int arg1)

FVector2(float x, float y)

public FVector2(float x, float y)

Initialise une nouvelle instance de FVector2.

Parameters:

ParamètreTypeDescription
xfloatComposante X du vecteur
yfloatComposante Y du vecteur

FVector2(Vector2 vec)

public FVector2(Vector2 vec)

Initialise une nouvelle instance de FVector2.

Parameters:

ParamètreTypeDescription
vecVector2Vector2 de type double

FVector2()

public FVector2()

x

public float x

Le composant x.

y

public float y

Le composant y.

add(FVector2 a, FVector2 b)

public static FVector2 add(FVector2 a, FVector2 b)

+ Surcharge d’opérateur

Parameters:

ParamètreTypeDescription
aFVector2Premier vecteur
bFVector2Deuxième vecteur

Returns: FVector2 - The sum of two vectors.

clone()

public FVector2 clone()

Cloner l’instance actuelle

Returns: FVector2

copyFrom(FVector2 src)

public void copyFrom(FVector2 src)

Parameters:

ParamètreTypeDescription
srcFVector2

create(FVector2 v)

public static Vector2 create(FVector2 v)

Opérateur de conversion explicite pour convertir FVector2 en Vector2

Parameters:

ParamètreTypeDescription
vFVector2Vector 2 de type float.

Returns: Vector2

equals(FVector2 rhs)

public boolean equals(FVector2 rhs)

Vérifier si deux vecteurs sont égaux

Parameters:

ParamètreTypeDescription
rhsFVector2

Returns: booléen - Vrai si toutes les composantes sont égales.

equals(Object obj)

public boolean equals(Object obj)

Vérifier si deux vecteurs sont égaux

Parameters:

ParamètreTypeDescription
objjava.lang.Object

Returns: booléen - Vrai si l’entrée est un vecteur et que toutes les composantes sont égales.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public int hashCode()

Obtient le code de hachage de cette instance

Returns: int - Le code de hachage du vecteur.

mul(FVector2 a, float b)

public static FVector2 mul(FVector2 a, float b)

* surcharge d’opérateur

Parameters:

ParamètreTypeDescription
aFVector2Premier vecteur
bfloatDeuxième vecteur

Returns: FVector2 - The product of two vectors.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

op_eq(FVector2 a, FVector2 b)

public static boolean op_eq(FVector2 a, FVector2 b)

== Surcharge d’opérateur

Parameters:

ParamètreTypeDescription
aFVector2Premier vecteur
bFVector2Deuxième vecteur

Returns: booléen - Vrai si toutes les composantes sont égales.

op_ne(FVector2 a, FVector2 b)

public static boolean op_ne(FVector2 a, FVector2 b)

!= Operator overloading

Parameters:

ParamètreTypeDescription
aFVector2Premier vecteur
bFVector2Deuxième vecteur

Returns: booléen - Vrai si une composante est différente.

sub(FVector2 a, FVector2 b)

public static FVector2 sub(FVector2 a, FVector2 b)

- Surcharge d’opérateur

Parameters:

ParamètreTypeDescription
aFVector2Premier vecteur
bFVector2Deuxième vecteur

Returns: FVector2 - The difference of two vectors.

toString()

public String toString()

Renvoie une chaîne qui représente le FVector2

Returns: java.lang.String - Représentation sous forme de chaîne du vecteur actuel.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParamètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int