Packages

 

com.aspose.cad.fileformats.obj.vertexdata

Class ObjVertexColor

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<ObjVertex>


    public class ObjVertexColor
    extends ObjVertex

    The OBJ vertex (position and color).

    • Constructor Detail

      • ObjVertexColor

        public ObjVertexColor(float x,
                              float y,
                              float z,
                              float r,
                              float g,
                              float b)

        Initializes a new instance of the ObjVertexColor class.

        Parameters:
        x - The x coordinate.
        y - The y coordinate.
        z - The z coordinate.
        r - The red component.
        g - The green component.
        b - The blue component.
    • Method Detail

      • getR

        public final float getR()

        Gets the red component.

      • getG

        public final float getG()

        Gets the green component.

      • getB

        public final float getB()

        Gets the blue component.

      • op_Equality

        public static boolean op_Equality(ObjVertexColor a,
                                          ObjVertexColor 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(ObjVertexColor a,
                                            ObjVertexColor 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 ObjVertex
        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(ObjVertexColor 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 ObjVertex
        Returns:
        The int.