Direction
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
Direction implements the following interfaces. That means all methods defined in these interfaces are also available in Direction
Enum Constants
Direction is an enum. It has 6 enum constants. They are accessible using the code below.
Methods
Return Type: Axis
Return Type: AxisDirection
Return Type: Direction
Return Type: Direction
Return Type: string
Return Type: Vec3i
Return Type: Direction
Return Type: Quaternion
Return Type: int
Return Type: int
Return Type: int
Return Type: boolean
Parameter | Type |
---|---|
Parameter degrees | Type float |
Return Type: Vector3f
Return Type: float
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name axis | Type Axis | Has Getter true | Has Setter false |
Name axisDirection | Type AxisDirection | Has Getter true | Has Setter false |
Name clockWise | Type Direction | Has Getter true | Has Setter false |
Name counterClockWise | Type Direction | Has Getter true | Has Setter false |
Name normal | Type Vec3i | Has Getter true | Has Setter false |
Name opposite | Type Direction | Has Getter true | Has Setter false |
Name rotation | Type Quaternion | Has Getter true | Has Setter false |
Name step | Type Vector3f | Has Getter true | Has Setter false |
Name stepX | Type int | Has Getter true | Has Setter false |
Name stepY | Type int | Has Getter true | Has Setter false |
Name stepZ | Type int | Has Getter true | Has Setter false |
Name toYRot | Type float | Has Getter true | Has Setter false |