Package com.aspose.threed
Class FVector4
- java.lang.Object
-
- com.aspose.threed.FVector4
-
- All Implemented Interfaces:
com.aspose.threed.Struct<FVector4>
,java.io.Serializable
,java.lang.Cloneable
public final class FVector4 extends java.lang.Object implements com.aspose.threed.Struct<FVector4>, java.io.Serializable
A float vector with four components.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FVector4()
FVector4(float x, float y, float z)
Initializes a new instance of theFVector4
.FVector4(float x, float y, float z, float w)
Initializes a new instance of theFVector4
.FVector4(Vector3 vec)
Initializes a new instance of theFVector4
.FVector4(Vector3 vec, float w)
Initializes a new instance of theFVector4
.FVector4(Vector4 vec)
Initializes a new instance of theFVector4
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FVector4
add(FVector4 lhs, FVector4 rhs)
Operator overloading for +FVector4
clone()
void
copyFrom(FVector4 src)
static Vector4
create(FVector4 v)
Explicit conversion operator to cast Vector4 to FVector4boolean
equals(java.lang.Object obj)
int
hashCode()
static FVector4
mul(FVector4 lhs, FVector4 rhs)
Operator overloading for *static FVector4
sub(FVector4 lhs, FVector4 rhs)
Operator overloading for - (minus)java.lang.String
toString()
Returns a string that represents theFVector4
-
-
-
Method Detail
-
create
public static Vector4 create(FVector4 v)
Explicit conversion operator to cast Vector4 to FVector4- Parameters:
v
-
-
add
public static FVector4 add(FVector4 lhs, FVector4 rhs)
Operator overloading for +- Parameters:
lhs
- The left vectorrhs
- The right vector- Returns:
- Result vector
-
sub
public static FVector4 sub(FVector4 lhs, FVector4 rhs)
Operator overloading for - (minus)- Parameters:
lhs
- The left vectorrhs
- The right vector- Returns:
- Result vector
-
mul
public static FVector4 mul(FVector4 lhs, FVector4 rhs)
Operator overloading for *- Parameters:
lhs
- The left vectorrhs
- The right vector- Returns:
- Result vector
-
toString
public java.lang.String toString()
Returns a string that represents theFVector4
- Overrides:
toString
in classjava.lang.Object
-
clone
public FVector4 clone()
- Specified by:
clone
in interfacecom.aspose.threed.Struct<FVector4>
- Overrides:
clone
in classjava.lang.Object
-
copyFrom
public void copyFrom(FVector4 src)
- Specified by:
copyFrom
in interfacecom.aspose.threed.Struct<FVector4>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-