FVector3
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector3 implements Struct<FVector3>, Serializable
Un vector flotante con tres componentes.
Constructores
| Constructor | Descripción |
|---|---|
| FVector3(float x, float y, float z) | Inicializa una nueva instancia de FVector3. |
| FVector3(Vector3 vec) | Inicializa una nueva instancia de FVector3. |
| FVector3(Vector4 vec) | Inicializa una nueva instancia de FVector4. |
| FVector3() |
Campos
| Campo | Descripción |
|---|---|
| x | El componente x. |
| y | El componente y. |
| z | El componente y. |
Métodos
| Método | Descripción |
|---|---|
| add(FVector3 a, FVector3 b) | + Sobrecarga de operadores |
| clone() | |
| copyFrom(FVector3 src) | |
| create(FVector3 v) | Operador de conversión explícita para convertir FVector3 a Vector3 |
| cross(FVector3 rhs) | Producto cruzado de dos vectores. |
| equals(Object obj) | |
| getClass() | |
| getOne() | El vector de escala unitario con todos los componentes iguales a 1 |
| getZero() | El vector cero. |
| hashCode() | |
| mul(FVector3 a, float b) | * Sobrecarga de operadores |
| negative(FVector3 a) | - Sobrecarga de operadores |
| normalize() | Normaliza esta instancia. |
| notify() | |
| notifyAll() | |
| sub(FVector3 a, FVector3 b) | - Sobrecarga de operadores |
| toString() | Devuelve una cadena que representa a FVector3 |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FVector3(float x, float y, float z)
public FVector3(float x, float y, float z)
Inicializa una nueva instancia de FVector3.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| x | float | Componente X del vector |
| y | float | Componente Y del vector |
| z | float | Componente Z del vector |
FVector3(Vector3 vec)
public FVector3(Vector3 vec)
Inicializa una nueva instancia de FVector3.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| vec | Vector3 | Vector3 en tipo double |
FVector3(Vector4 vec)
public FVector3(Vector4 vec)
Inicializa una nueva instancia de FVector4.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| vec | Vector4 | Vector4 en tipo double |
FVector3()
public FVector3()
x
public float x
El componente x.
y
public float y
El componente y.
z
public float z
El componente y.
add(FVector3 a, FVector3 b)
public static FVector3 add(FVector3 a, FVector3 b)
+ Sobrecarga de operadores
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| a | FVector3 | Primer vector |
| b | FVector3 | Segundo vector |
Returns: FVector3
clone()
public FVector3 clone()
Clonar la instancia actual
Returns: FVector3
copyFrom(FVector3 src)
public void copyFrom(FVector3 src)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| src | FVector3 |
create(FVector3 v)
public static Vector3 create(FVector3 v)
Operador de conversión explícita para convertir FVector3 a Vector3
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| v | FVector3 | Vector3 en tipo float |
Returns: Vector3
cross(FVector3 rhs)
public FVector3 cross(FVector3 rhs)
Producto cruzado de dos vectores.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| rhs | FVector3 | Valor del lado derecho. |
Returns: FVector3 - Cross product of two FVector3s.
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getOne()
public static FVector3 getOne()
El vector de escala unitario con todos los componentes iguales a 1
Returns: FVector3 - The unit scale vector with all components are all 1
getZero()
public static FVector3 getZero()
El vector cero.
Returns: FVector3 - The Zero vector.
hashCode()
public int hashCode()
Returns: int
mul(FVector3 a, float b)
public static FVector3 mul(FVector3 a, float b)
* Sobrecarga de operadores
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| a | FVector3 | Primer vector |
| b | float | Segundo vector |
Returns: FVector3 - The product of two vectors
negative(FVector3 a)
public static FVector3 negative(FVector3 a)
- Sobrecarga de operadores
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| a | FVector3 | Vector de entrada |
Returns: FVector3 - The negative vector
normalize()
public FVector3 normalize()
Normaliza esta instancia.
Returns: FVector3 - Normalized vector.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
sub(FVector3 a, FVector3 b)
public static FVector3 sub(FVector3 a, FVector3 b)
- Sobrecarga de operadores
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| a | FVector3 | Primer vector |
| b | FVector3 | Segundo vector |
Returns: FVector3 - The difference of two vectors
toString()
public String toString()
Devuelve una cadena que representa a FVector3
Returns: java.lang.String - Representación en cadena de este vector.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long | |
| arg1 | int |