Constructor and Description |
---|
ObjVertexColor(float x,
float y,
float z,
float r,
float g,
float b)
Initializes a new instance of the
ObjVertexColor class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether the current object is equal to another object.
|
boolean |
equals(ObjVertexColor other)
Indicates whether the current object is equal to another object of the same type.
|
float |
getB()
Gets the blue component.
|
float |
getG()
Gets the green component.
|
float |
getR()
Gets the red component.
|
int |
hashCode()
Gets hash code.
|
static boolean |
op_Equality(ObjVertexColor a,
ObjVertexColor b)
Overloading the equality operator.
|
static boolean |
op_Inequality(ObjVertexColor a,
ObjVertexColor b)
Overloading the inequality operator.
|
equals, getX, getY, getZ, op_Equality, op_Inequality
public ObjVertexColor(float x, float y, float z, float r, float g, float b)
Initializes a new instance of the ObjVertexColor
class.
x
- The x coordinate.y
- The y coordinate.z
- The z coordinate.r
- The red component.g
- The green component.b
- The blue component.public final float getR()
Gets the red component.
public final float getG()
Gets the green component.
public final float getB()
Gets the blue component.
public static boolean op_Equality(ObjVertexColor a, ObjVertexColor b)
Overloading the equality operator.
a
- The first instance.b
- The second instance.public static boolean op_Inequality(ObjVertexColor a, ObjVertexColor b)
Overloading the inequality operator.
a
- The first instance.b
- The second instance.public boolean equals(Object obj)
Indicates whether the current object is equal to another object.
public final boolean equals(ObjVertexColor other)
Indicates whether the current object is equal to another object of the same type.
other
- An object to compare with this object.other
parameter; otherwise, false.