Extensions_Vector3Add Method |
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.
Namespace: ff14bot.Helpers
public static Vector3 Add( this Vector3 v, double x, double y, double z )