RandomUnitVectorInEllipticalCone: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server & Client|1.0}} {{FuncDescription|Returns a normalized vector (length 1) that is inside the specified cone.}} {{FuncSyntax|RandomUnitVectorInElliptical...")
 
No edit summary
 
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|Returns a normalized vector (length 1) that is inside the specified cone.}}
{{FuncDescription|Returns a normalized vector (length 1) that is inside the specified cone.}}

Latest revision as of 22:36, 29 September 2019

RandomUnitVectorInEllipticalCone

Type: Function
Context: Client
Introduced: v1.0

Description

Returns a normalized vector (length 1) that is inside the specified cone.

Syntax

RandomUnitVectorInEllipticalCone(x, y, z, MaxYaw, MaxPitch)

Parameters

  • x
    Center X of the cone.
  • y
    Center X of the cone.
  • z
    Center X of the cone.
  • MaxYaw
    Yaw angle of the cone in degrees. (Center to horizontal edge)
  • MaxPitch
    Pitch angle of the cone in degrees. (Center to vertical edge)

Return Value

  • Returns an unit vector.

Example

__EDIT_ME__

See also

RandomUnitVectorInCone