vec3.squaredDistance

From GTA Connected
(Redirected from Vec3.squaredDistance)
Jump to: navigation, search

Method Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

float vec3.squaredDistance(Vec3 vector2)

Description

The vec3.squaredDistance method is used to fetch the squared distance of the two 3D vectors.

Parameters

Type Name Presence Default Value Description
Vec2 vector2 required n/a The second 2D vector.

Returns

Success Returns

Type Description
float A floating-point number representing the squared distance of the two 3D vectors.

Failure Returns

Type Value
float 0.0

Types

This method can only be used on the Vec3 type.

Notes

There aren't any notes for this method.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related