vec2.addPolar

From GTA Connected
(Redirected from Vec2.addPolar)
Jump to: navigation, search

Method Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

Vec2 vec2.addPolar(float radius, float angle)

Description

The vec2.addPolar method is used to fetch a new 2D vector with a 2D offset added to the vector, calculated with the polar co-ordinate system.

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
Vec2 The new 2D vector.

Failure Returns

Type Value
Vec2 Vec2(0.0,0.0)

Types

This method can only be used on the Vec2 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