ObjVertex
All Implemented Interfaces: com.aspose.ms.System.IEquatable
The OBJ vertex.
Constructors
| Constructor | Description |
|---|---|
| ObjVertex(float x, float y, float z) | Initializes a new instance of the ObjVertex class. |
Methods
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| x | float | The x coordinate. |
| y | float | The y coordinate. |
| z | float | The 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:
| Parameter | Type | Description |
|---|---|---|
| a | ObjVertex | The first instance. |
| b | ObjVertex | The 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:
| Parameter | Type | Description |
|---|---|---|
| a | ObjVertex | The first instance. |
| b | ObjVertex | The 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:
| Parameter | Type | Description |
|---|---|---|
| obj | Object | An 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:
| Parameter | Type | Description |
|---|---|---|
| other | ObjVertex | An 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 .