DirectionAxis
Represents a direction axis (X, Y, Z)
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Implemented Interfaces
DirectionAxis implements the following interfaces. That means all methods defined in these interfaces are also available in DirectionAxis
- Predicate
Enum Constants
DirectionAxis is an enum. It has 3 enum constants. They are accessible using the code below.
Methods
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter o | Type Object | Description No Description Provided |
Gets the coordinate of this axis based on the given values, if this axis is “X”, then it will return the value of the “x” parameter
Returns: value of the coordinate
Return Type: double
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description x value of the coordinate |
Parameter y | Type double | Description y value of the coordinate |
Parameter z | Type double | Description z value of the coordinate |
Gets the coordinate of this axis based on the given values, if this axis is “X”, then it will return the value of the “x” parameter
Returns: value of the coordinate
Return Type: int
Parameter | Type | Description |
---|---|---|
Parameter x | Type int | Description x value of the coordinate |
Parameter y | Type int | Description y value of the coordinate |
Parameter z | Type int | Description z value of the coordinate |
Return Type: int
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name commandString | Type string | Has Getter true | Has Setter false | Description No Description Provided |
Name hashCode | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Name horizontal | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name name | Type string | Has Getter true | Has Setter false | Description Get the name of this Axis (“X”, “Y” or “Z”) |
Name ordinal | Type int | Has Getter true | Has Setter false | Description Gets the enum ordinal of this axis |
Name vertical | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |