Class FVector2

  • java.lang.Object
    • com.aspose.threed.FVector2
  • All Implemented Interfaces:
    com.aspose.threed.Struct<FVector2>, java.io.Serializable, java.lang.Cloneable

    public final class FVector2
    extends java.lang.Object
    implements com.aspose.threed.Struct<FVector2>, java.io.Serializable
    A float vector with two components.
    See Also:
    Serialized Form
    • Field Detail

      • x

        public float x
        The x component.
      • y

        public float y
        The y component.
    • Constructor Detail

      • FVector2

        public FVector2​(float x,
                        float y)
        Initializes a new instance of the FVector2.
      • FVector2

        public FVector2​(Vector2 vec)
        Initializes a new instance of the FVector2.
      • FVector2

        public FVector2()
    • Method Detail

      • create

        public static Vector2 create​(FVector2 v)
        Explicit conversion operator to cast FVector2 to Vector2
        Parameters:
        v -
      • toString

        public java.lang.String toString()
        Returns a string that represents the FVector2
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(FVector2 rhs)
        Check if two vectors are equal
        Parameters:
        rhs -
      • equals

        public boolean equals​(java.lang.Object obj)
        Check if two vectors are equal
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
      • op_eq

        public static boolean op_eq​(FVector2 a,
                                    FVector2 b)
        == Operator overloading
        Parameters:
        a -
        b -
      • op_ne

        public static boolean op_ne​(FVector2 a,
                                    FVector2 b)
        != Operator overloading
        Parameters:
        a -
        b -
      • clone

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

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

        public int hashCode()
        Gets the hash code of this instance
        Overrides:
        hashCode in class java.lang.Object