FVector3

Inheritance: java.lang.Object

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

public final class FVector3 implements Struct<FVector3>, Serializable

Вектор float с тремя компонентами.

Конструкторы

КонструкторОписание
FVector3(float x, float y, float z)Инициализирует новый экземпляр FVector3.
FVector3(Vector3 vec)Инициализирует новый экземпляр FVector3.
FVector3(Vector4 vec)Инициализирует новый экземпляр FVector4.
FVector3()

Поля

ПолеОписание
xКомпонент x.
yКомпонент y.
zКомпонент y.

Методы

МетодОписание
add(FVector3 a, FVector3 b)+ Перегрузка оператора
clone()
copyFrom(FVector3 src)
create(FVector3 v)Явный оператор преобразования для приведения FVector3 к Vector3
cross(FVector3 rhs)Векторное произведение двух векторов.
equals(Object obj)
getClass()
getOne()Вектор единичного масштаба, все компоненты которого равны 1
getZero()Вектор нуля.
hashCode()
mul(FVector3 a, float b)* Перегрузка операторов
negative(FVector3 a)- Перегрузка оператора
normalize()Нормализует этот экземпляр.
notify()
notifyAll()
sub(FVector3 a, FVector3 b)- Перегрузка оператора
toString()Возвращает строку, представляющую 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)

Инициализирует новый экземпляр FVector3.

Parameters:

ПараметрТипОписание
xfloatX компонент вектора
yfloatY компонент вектора
zfloatZ‑компонент вектора

FVector3(Vector3 vec)

public FVector3(Vector3 vec)

Инициализирует новый экземпляр FVector3.

Parameters:

ПараметрТипОписание
vecVector3Vector3 в типе double

FVector3(Vector4 vec)

public FVector3(Vector4 vec)

Инициализирует новый экземпляр FVector4.

Parameters:

ПараметрТипОписание
vecVector4Vector4 в типе double

FVector3()

public FVector3()

x

public float x

Компонент x.

y

public float y

Компонент y.

z

public float z

Компонент y.

add(FVector3 a, FVector3 b)

public static FVector3 add(FVector3 a, FVector3 b)

+ Перегрузка оператора

Parameters:

ПараметрТипОписание
aFVector3Первый вектор
bFVector3Второй вектор

Returns: FVector3

clone()

public FVector3 clone()

Клонировать текущий экземпляр

Returns: FVector3

copyFrom(FVector3 src)

public void copyFrom(FVector3 src)

Parameters:

ПараметрТипОписание
srcFVector3

create(FVector3 v)

public static Vector3 create(FVector3 v)

Явный оператор преобразования для приведения FVector3 к Vector3

Parameters:

ПараметрТипОписание
vFVector3Vector3 в типе float

Returns: Vector3

cross(FVector3 rhs)

public FVector3 cross(FVector3 rhs)

Векторное произведение двух векторов.

Parameters:

ПараметрТипОписание
rhsFVector3Значение правой части.

Returns: FVector3 - Cross product of two FVector3s.

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ПараметрТипОписание
objjava.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getOne()

public static FVector3 getOne()

Вектор единичного масштаба, все компоненты которого равны 1

Returns: FVector3 - The unit scale vector with all components are all 1

getZero()

public static FVector3 getZero()

Вектор нуля.

Returns: FVector3 - The Zero vector.

hashCode()

public int hashCode()

Returns: int

mul(FVector3 a, float b)

public static FVector3 mul(FVector3 a, float b)

* Перегрузка операторов

Parameters:

ПараметрТипОписание
aFVector3Первый вектор
bfloatВторой вектор

Returns: FVector3 - The product of two vectors

negative(FVector3 a)

public static FVector3 negative(FVector3 a)

- Перегрузка оператора

Parameters:

ПараметрТипОписание
aFVector3Входной вектор

Returns: FVector3 - The negative vector

normalize()

public FVector3 normalize()

Нормализует этот экземпляр.

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)

- Перегрузка оператора

Parameters:

ПараметрТипОписание
aFVector3Первый вектор
bFVector3Второй вектор

Returns: FVector3 - The difference of two vectors

toString()

public String toString()

Возвращает строку, представляющую FVector3

Returns: java.lang.String — строковое представление этого вектора.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ПараметрТипОписание
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ПараметрТипОписание
arg0long
arg1int