vec3.addPolar

From GTA Connected
(Redirected from Vec3.addPolar)
Jump to navigation Jump to search

Method Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

Vec3 vec3.addPolar(float radius, float angle)

Description

The vec3.addPolar method is used to fetch a new 3D vector with a 2D offset added to the vector, calculated with the polar co-ordinate system. The new vector's z co-ordinate is copied.

Parameters

Type Name Presence Default Value Description
float radius required n/a The radius of the circle.
float angle required n/a The angle of the line.

Returns

Success Returns

Type Description
Vec3 The new 3D vector.

Failure Returns

Type Value
Vec3 Vec3(0.0,0.0,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