Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Helpers.Extensions_Vector3 Class Reference

Static Public Member Functions

static Vector3 Add (this Vector3 v, double x, double y, double z)
static Vector3 AddPolarXZ (this Vector3 v, double xzHeadingInRadians, double distance, double yModifier)
static async Task< Vector3 > FanOutRandomAsync (this Vector3 location, double maxRadius)
static Vector3 FanOutRandom (this Vector3 location, double maxRadius)
static bool IsOverGround (this Vector3 location, double probeDistance)
 Returns true, if ground is within DISTANCE below you.

Static Public Attributes

const double TAU = (2 * Math.PI)

Member Function Documentation

◆ Add()

Vector3 ff14bot.Helpers.Extensions_Vector3.Add ( this Vector3 v,
double x,
double y,
double z )
static

Adds the provided X, Y, and Z offsets to Vector3 yielding a new Vector3.

The HBcore only provides a version of this that accepts 'float' values. This version accepts 'doubles', because it is inefficient to keep truncating data types (to float) that are provided by the Math and other libraries.

'Double' performance is just as fast as 'Float'. Internally, modern computer architectures calculate using maximum precision (i.e., many bits bigger than double), then truncate the result to fit. The only benefit 'float' has over 'double' is storage space, which is negligible unless you've a database using billions of them.

Returns
new Vector3 with adjusted coordinates

17Apr2011-12:16UTC chinajade

◆ AddPolarXZ()

Vector3 ff14bot.Helpers.Extensions_Vector3.AddPolarXZ ( this Vector3 v,
double xzHeadingInRadians,
double distance,
double yModifier )
static

◆ FanOutRandom()

Vector3 ff14bot.Helpers.Extensions_Vector3.FanOutRandom ( this Vector3 location,
double maxRadius )
static

Finds another point near the destination. Useful when toon is 'waiting' for something (e.g., boat, mob repops, etc). This allows multiple people running the same profile to not stand on top of each other while waiting for something.

Notes:

  • * The returned Vector3 is carefully chosen. The returned Vector3 will not cause you to fall off a boat dock or Zeppelin landing.

* Should only be used once the player is within 100 yards of the provided location otherwise the raycasts will fail

Parameters
location
maxRadius
Returns

17Apr2011-12:16UTC chinajade

◆ FanOutRandomAsync()

async Task< Vector3 > ff14bot.Helpers.Extensions_Vector3.FanOutRandomAsync ( this Vector3 location,
double maxRadius )
static

Finds another point near the destination. Useful when toon is 'waiting' for something (e.g., boat, mob repops, etc). This allows multiple people running the same profile to not stand on top of each other while waiting for something.

Notes:

  • * The returned Vector3 is carefully chosen. The returned Vector3 will not cause you to fall off a boat dock or Zeppelin landing.

* Should only be used once the player is within 100 yards of the provided location otherwise the raycasts will fail

Parameters
location
maxRadius
Returns

17Apr2011-12:16UTC chinajade

◆ IsOverGround()

bool ff14bot.Helpers.Extensions_Vector3.IsOverGround ( this Vector3 location,
double probeDistance )
static

Returns true, if ground is within DISTANCE below you.

Parameters
location
probeDistance
Returns
true, if ground is within DISTANCE below you.

17Apr2011-12:16UTC chinajade

Member Data Documentation

◆ TAU

const double ff14bot.Helpers.Extensions_Vector3.TAU = (2 * Math.PI)
static