Class FVector2

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

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

      Fields 
      Modifier and Type Field Description
      float x
      The x component.
      float y
      The y component.
    • Method Summary

      Modifier and Type Method Description
      FVector2 clone()  
      void copyFrom​(FVector2 src)  
      boolean equals​(FVector2 rhs)
      Check if two vectors are equal
      boolean equals​(java.lang.Object obj)
      Check if two vectors are equal
      int hashCode()
      Gets the hash code of this instance
      static boolean op_eq​(FVector2 a, FVector2 b)
      == Operator overloading
      static boolean op_ne​(FVector2 a, FVector2 b)
      != Operator overloading
      static FVector2 sub​(FVector2 a, FVector2 b)
      - Operator overloading
      java.lang.String toString()
      Returns a string that represents the FVector2
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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

      • 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.csporter.helpers.Struct<FVector2>
        Overrides:
        clone in class java.lang.Object
      • copyFrom

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

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