Packages

 

com.aspose.cad.fileformats.obj.vertexdata

Class ObjVertex

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<ObjVertex>
    Direct Known Subclasses:
    ObjVertexColor


    public class ObjVertex
    extends Object
    implements com.aspose.ms.System.IEquatable<ObjVertex>

    The OBJ vertex.

    • Constructor Detail

      • ObjVertex

        public ObjVertex(float x,
                         float y,
                         float z)

        Initializes a new instance of the ObjVertex class.

        Parameters:
        x - The x coordinate.
        y - The y coordinate.
        z - The z coordinate.
    • Method Detail

      • getX

        public final float getX()

        Gets the x coordinate.

      • getY

        public final float getY()

        Gets the y coordinate.

      • getZ

        public final float getZ()

        Gets the z coordinate.

      • op_Equality

        public static boolean op_Equality(ObjVertex a,
                                          ObjVertex b)

        Overloading the equality operator.

        Parameters:
        a - The first instance.
        b - The second instance.
        Returns:
        The value indicating whether instances are equal.
      • op_Inequality

        public static boolean op_Inequality(ObjVertex a,
                                            ObjVertex b)

        Overloading the inequality operator.

        Parameters:
        a - The first instance.
        b - The second instance.
        Returns:
        The value indicating whether instances are not equal.
      • equals

        public boolean equals(Object obj)

        Indicates whether the current object is equal to another object.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<ObjVertex>
        Overrides:
        equals in class Object
        Parameters:
        obj - An object to compare with this object.
        Returns:
        true if the current object is equal to the obj parameter; otherwise, false.
      • equals

        public final boolean equals(ObjVertex other)

        Indicates whether the current object is equal to another object of the same type.

        Parameters:
        other - An object to compare with this object.
        Returns:
        true if the current object is equal to the other parameter; otherwise, false.
      • hashCode

        public int hashCode()

        Gets hash code.

        Overrides:
        hashCode in class Object
        Returns:
        The int.