collapse_all
expand_all
collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]
Visual C++
DPSF API Documentation
DPSFHelper
.
.

::

..NormalizedPointOnSphere Method
gradient

Returns a point on a sphere with a radius of one. To use a different radius simply multiply the returned value by the desired radius value, before translating it to the sphere's position in world coordinates. To create a circle simply use a constant value for one of the Angles while changing the other Angle.

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public static Vector3 NormalizedPointOnSphere(

 float fYawAngle,

 float fPitchAngle

)

Visual Basic

Public Shared Function NormalizedPointOnSphere (

 fYawAngle As Single,

 fPitchAngle As Single

As Vector3

Visual C++

public:

static Vector3 NormalizedPointOnSphere(

 float fYawAngle,

 float fPitchAngle

)

Parameters

fYawAngle

Type: System..::..Single

Imagine a point on the surface of the sphere at the front center of the sphere. This value will be how much to rotate that point around the horizontal ring around the center of the sphere, in radians.

fPitchAngle

Type: System..::..Single

This value will be how much to rotate that point around the vertical ring around the sphere, at the current position of the point, in radians.

Return Value

Type: Vector3

Returns a point on a sphere with a radius of one

collapse_allSee Also

DPSFHelper Class

DPSFHelper Members

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com