Package com.aspose.threed
Class FVector3
- java.lang.Object
-
- com.aspose.threed.FVector3
-
- All Implemented Interfaces:
com.aspose.threed.Struct<FVector3>
,java.io.Serializable
,java.lang.Cloneable
public final class FVector3 extends java.lang.Object implements com.aspose.threed.Struct<FVector3>, java.io.Serializable
A float vector with three components.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FVector3
add(FVector3 a, FVector3 b)
+ Operator overloadingFVector3
clone()
void
copyFrom(FVector3 src)
static Vector3
create(FVector3 v)
Explicit conversion operator to cast FVector3 to Vector3FVector3
cross(FVector3 rhs)
Cross product of two vectorsboolean
equals(java.lang.Object obj)
int
hashCode()
static FVector3
mul(FVector3 a, float b)
* Operator overloadingstatic FVector3
negative(FVector3 a)
- Operator overloadingFVector3
normalize()
Normalizes this instance.static FVector3
sub(FVector3 a, FVector3 b)
- Operator overloadingjava.lang.String
toString()
Returns a string that represents theFVector3
-
-
-
Constructor Detail
-
FVector3
public FVector3(float x, float y, float z)
Initializes a new instance of theFVector3
.
-
FVector3
public FVector3()
-
-
Method Detail
-
create
public static Vector3 create(FVector3 v)
Explicit conversion operator to cast FVector3 to Vector3- Parameters:
v
-
-
toString
public java.lang.String toString()
Returns a string that represents theFVector3
- Overrides:
toString
in classjava.lang.Object
-
normalize
public FVector3 normalize()
Normalizes this instance.- Returns:
- Normalized vector.
-
cross
public FVector3 cross(FVector3 rhs)
Cross product of two vectors- Parameters:
rhs
- Right hand side value.- Returns:
- Cross product of two
FVector3
s.
-
clone
public FVector3 clone()
- Specified by:
clone
in interfacecom.aspose.threed.Struct<FVector3>
- Overrides:
clone
in classjava.lang.Object
-
copyFrom
public void copyFrom(FVector3 src)
- Specified by:
copyFrom
in interfacecom.aspose.threed.Struct<FVector3>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-