vec3.addSpherical: Difference between revisions
Jump to navigation
Jump to search
m (Mex moved page Vec3.addSpherical to vec3.addSpherical) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = addSpherical | ||
|side = shared | |||
|type = method | |type = method | ||
|class = Vec3 | |class = Vec3 | ||
| | |games = iii vc sa iv | ||
| | |desc = fetch a new 3D vector with a 3D offset added to the vector, calculated with the spherical co-ordinate system | ||
| | |arg1 = float radius The radius of the sphere. | ||
| | |arg2 = float inclinationAngle The inclination angle of the line. | ||
| | |arg3 = float azimuthalAngle The azimuthal angle of the line. | ||
| | |return = Vec3 the new 3D vector | ||
|freturn = Vec3 Vec3(0.0,0.0,0.0) | |||
| | |||
}} | }} |
Latest revision as of 20:37, 19 November 2022
Method
Server and Client
Online and Offline
Available since Server 1.0.0, Client 1.0.0
Vec3 vec3.addSpherical(float radius, float inclinationAngle, float azimuthalAngle)
The vec3.addSpherical method is used to fetch a new 3D vector with a 3D offset added to the vector, calculated with the spherical co-ordinate system.
Parameters
1) | float | radius | The radius of the sphere. |
2) | float | inclinationAngle | The inclination angle of the line. |
3) | float | azimuthalAngle | The azimuthal angle of the line. |
Return
Vec3 | The new 3D vector. |
Types
Shared
Vec3
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.