Click or drag to resize

Vector3 Methods

The Vector3 type exposes the following members.

Methods
  NameDescription
Public methodAdd
Public methodStatic memberAngleBetween
Public methodStatic memberBlend
Public methodStatic memberCardinal(Vector3, Vector3, Vector3, Vector3, Single, Single, Single)
Public methodStatic memberCardinal(Vector3, Vector3, Vector3, Vector3, Single, Single, Single, Vector3)
Public methodStatic memberCatmullRom(Vector3, Vector3, Vector3, Vector3, Single)
Public methodStatic memberCatmullRom(Vector3, Vector3, Vector3, Vector3, Single, Vector3)
Public methodStatic memberCross(Vector3, Vector3)
Public methodStatic memberCross(Vector3, Vector3, Vector3)
Public methodStatic memberCrossProduct
Public methodStatic memberCubiceHermiteCurve
Public methodDistance(Vector3)
Public methodStatic memberDistance(Vector3, Vector3)
Public methodStatic memberDistance(Vector3, Vector3)
Public methodDistance2D(LineSegment)
Public methodDistance2D(Vector3)
Public methodStatic memberDistance2D(Vector3, Vector3)
Public methodDistance2DSqr(Vector3)
Public methodStatic memberDistance2DSqr(Vector3, Vector3)
Public methodDistance3D
Public methodDistanceSqr(Vector3)
Public methodStatic memberDistanceSqr(Vector3, Vector3)
Public methodStatic memberDistanceSqr(Vector3, Vector3)
Public methodStatic memberDot(Vector3, Vector3)
Public methodStatic memberDot(Vector3, Vector3)
Public methodStatic memberDotProduct
Public methodEquals(Object) (Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3)
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHermite(Vector3, Vector3, Vector3, Vector3, Single)
Public methodStatic memberHermite(Vector3, Vector3, Vector3, Vector3, Single, Vector3)
Public methodLengthSquared
Public methodStatic memberLerp
Public methodStatic memberMax
Public methodStatic memberMin
Public methodNormalize
Public methodStatic memberNormalizedDirection
Public methodRayCast
Public methodToString (Overrides ValueTypeToString.)
Public methodToVector2
Top
Extension Methods
  NameDescription
Public Extension MethodAdd

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.

(Defined by Extensions_Vector3.)
Public Extension MethodAddPolarXZ (Defined by Extensions_Vector3.)
Public Extension MethodFanOutRandom

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

(Defined by Extensions_Vector3.)
Public Extension MethodIsOverGround
Returns true, if ground is within DISTANCE _below_ you.
(Defined by Extensions_Vector3.)
Top
See Also