 | DirectionMoveLocation Method |
Moves the specified location by one field into the specified direction.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static Vector2I MoveLocation(
Vector2I gridLocation,
DirectionType direction
)
Public Shared Function MoveLocation (
gridLocation As Vector2I,
direction As DirectionType
) As Vector2I
public:
static Vector2I MoveLocation(
Vector2I gridLocation,
DirectionType direction
)
static member MoveLocation :
gridLocation : Vector2I *
direction : DirectionType -> Vector2I
Parameters
- gridLocation
- Type: Slash.Math.Algebra.VectorsVector2I
Location to move. - direction
- Type: Slash.Math.UtilsDirectionType
Direction to move to.
Return Value
Type:
Vector2INew location after moving the specified location into the specified direction.
See Also