![]() | Direction Class |
Namespace: Slash.Math.Utils
The Direction type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CardinalDirections |
Returns an enumeration of cardinal directions (N-E-S-W).
|
![]() ![]() | ComputeCardinalDirection(Single) |
Computes the direction which is closest to the specified angle.
Angle defines rotation from forward direction (0, 1) positive counter-clockwise.
|
![]() ![]() | ComputeCardinalDirection(Vector2F) |
Computes the direction which is closest to the specified vector.
|
![]() ![]() | GetCardinalDirectionIndex |
Returns the index for the specified cardinal direction to use it, e.g. in a collection.
|
![]() ![]() | IsCardinalDirection(Object) |
Checks if the specified value is a direction and a cardinal direction (i.e. N, E, S or W).
|
![]() ![]() | IsCardinalDirection(DirectionType) |
Checks if the specified direction is a cardinal direction (i.e. N, E, S or W).
|
![]() ![]() | IsHorizontalDirection |
Indicates if the specified direction is a horizontal one (W, E) or a vertical one (N, S).
|
![]() ![]() | MoveLocation |
Moves the specified location by one field into the specified direction.
|
![]() ![]() | Opposite |
Calculates opposite directions of given directions.
|
![]() ![]() | ToDirections(Vector2F) |
Returns directions of a vector, based on quadrants.
|
![]() ![]() | ToDirections(Vector2I) |
Returns directions of a vector, based on quadrants.
|
![]() ![]() | ToVector2F |
Converts the specified direction into a vector.
|
![]() ![]() | ToVector2I |
Converts the specified direction into a vector.
|