com.aspose.threed

Interfaces

Classes

Enums

Exceptions

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
    • Field Detail

      • ZERO

        public static final FVector3 ZERO
        The Zero vector.
      • UNIT_SCALE

        public static final FVector3 UNIT_SCALE
        The unit scale vector with all components are all 1
      • x

        public float x
        The x component.
      • y

        public float y
        The y component.
      • z

        public float z
        The y component.
    • Constructor Detail

      • FVector3

        public FVector3(float x,
                        float y,
                        float z)
        Initializes a new instance of the FVector3.
      • FVector3

        public FVector3(Vector3 vec)
        Initializes a new instance of the FVector3.
      • FVector3

        public FVector3(Vector4 vec)
        Initializes a new instance of the FVector4.
      • FVector3

        public FVector3()
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string that represents the FVector3
        Overrides:
        toString in class java.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 FVector3s.
      • negative

        public static FVector3 negative(FVector3 a)
        - Operator overloading
        Parameters:
        a -
      • mul

        public static FVector3 mul(FVector3 a,
                                   float b)
        * Operator overloading
        Parameters:
        a -
        b -
      • clone

        public FVector3 clone()
        Specified by:
        clone in interface com.aspose.threed.Struct<FVector3>
        Overrides:
        clone in class java.lang.Object
      • copyFrom

        public void copyFrom(FVector3 src)
        Specified by:
        copyFrom in interface com.aspose.threed.Struct<FVector3>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object