ObjVertex

All Implemented Interfaces: com.aspose.ms.System.IEquatable

The OBJ vertex.

Constructors

ConstructorDescription
ObjVertex(float x, float y, float z)Initializes a new instance of the ObjVertex class.

Methods

MethodDescription
getX()Gets the x coordinate.
getY()Gets the y coordinate.
getZ()Gets the z coordinate.
op_Equality(ObjVertex a, ObjVertex b)Overloading the equality operator.
op_Inequality(ObjVertex a, ObjVertex b)Overloading the inequality operator.
equals(Object obj)Indicates whether the current object is equal to another object.
equals(ObjVertex other)Indicates whether the current object is equal to another object of the same type.
hashCode()Gets hash code.

ObjVertex(float x, float y, float z)

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

Initializes a new instance of the ObjVertex class.

Parameters:

ParameterTypeDescription
xfloatThe x coordinate.
yfloatThe y coordinate.
zfloatThe z coordinate.

getX()

public final float getX()

Gets the x coordinate.

Returns: float

getY()

public final float getY()

Gets the y coordinate.

Returns: float

getZ()

public final float getZ()

Gets the z coordinate.

Returns: float

op_Equality(ObjVertex a, ObjVertex b)

public static boolean op_Equality(ObjVertex a, ObjVertex b)

Overloading the equality operator.

Parameters:

ParameterTypeDescription
aObjVertexThe first instance.
bObjVertexThe second instance.

Returns: boolean - The value indicating whether instances are equal.

op_Inequality(ObjVertex a, ObjVertex b)

public static boolean op_Inequality(ObjVertex a, ObjVertex b)

Overloading the inequality operator.

Parameters:

ParameterTypeDescription
aObjVertexThe first instance.
bObjVertexThe second instance.

Returns: boolean - The value indicating whether instances are not equal.

equals(Object obj)

public boolean equals(Object obj)

Indicates whether the current object is equal to another object.

Parameters:

ParameterTypeDescription
objObjectAn object to compare with this object.

Returns: boolean - true if the current object is equal to the obj parameter; otherwise, false.

equals(ObjVertex other)

public final boolean equals(ObjVertex other)

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

Parameters:

ParameterTypeDescription
otherObjVertexAn object to compare with this object.

Returns: boolean - true if the current object is equal to the other parameter; otherwise, false.

hashCode()

public int hashCode()

Gets hash code.

Returns: int - The int .