# VectorSize

##### Description:

Function VectorSize returns the norm (length) of the provided vector.

Function VectorSize was added in 0.3z and will not work in earlier versions! |

##### Parameters:

(Float:X, Float:Y, Float:Z)

float | X | The vector's magnitude on the X axis. |

float | Y | The vector's magnitude on the Y axis. |

float | Z | The vector's magnitude on the Z axis. |

##### Return Values:

The norm (length) of the provided vector as a

**float**.

##### Examples:

stock Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2) { return VectorSize(x1-x2, y1-y2, z1-z2); }

##### Related Functions

*The following functions may be useful, as they are related to this function in one way or another.*

- GetPlayerDistanceFromPoint: Get the distance between a player and a point.
- GetVehicleDistanceFromPoint: Get the distance between a vehicle and a point.
- floatsqroot: Calculate the square root of a floating point value.