Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Pathing.MoveResultExtensions Class Reference

Static Public Member Functions

static float CalculateNeededFacing (Vector3 start, Vector3 faceTarget)
 Calculates the required facing to face a point from any other point.
static float NormalizeRadian (float radian)
 Normalizes a radian so it's between 0 and pi * 2.
static bool IsSuccessful (this MoveResult moveResult)
 Determines whether the specified move result is successful.
static TSource MinByOrDefault< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector)
 Finds the minimum TSource in source based on a key.

Member Function Documentation

◆ CalculateNeededFacing()

float ff14bot.Pathing.MoveResultExtensions.CalculateNeededFacing ( Vector3 start,
Vector3 faceTarget )
static

Calculates the required facing to face a point from any other point.

Parameters
startThe start point.
faceTargetThe end point.
Returns
The required facing in radians.

◆ IsSuccessful()

bool ff14bot.Pathing.MoveResultExtensions.IsSuccessful ( this MoveResult moveResult)
static

Determines whether the specified move result is successful.

Parameters
moveResultThe move result.
Returns
true if successful; false otherwise

◆ MinByOrDefault< TSource, TKey >()

TSource ff14bot.Pathing.MoveResultExtensions.MinByOrDefault< TSource, TKey > ( this IEnumerable< TSource > source,
Func< TSource, TKey > keySelector )
static

Finds the minimum TSource in source based on a key.

Template Parameters
TSourceThe source parameter type.
TKeyThe key type to compare the source on.
Parameters
sourceThe source.
keySelectorA delegate that extracts a key from an item.
Exceptions
ArgumentNullExceptionsource or keySelector are null.
Returns
The source item that has the smallest extracted key, or default(TSource) if source is empty.

◆ NormalizeRadian()

float ff14bot.Pathing.MoveResultExtensions.NormalizeRadian ( float radian)
static

Normalizes a radian so it's between 0 and pi * 2.

Parameters
radian.
Returns
A float.