Calculates whether the sphere of the radius radius and the center position is inside the field angle.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public bool SphereInFrustum(
	Vector3 position,
	float radius
)

Parameters

position
Type: Vector3
Sphere center position.
radius
Type: System..::.Single
Sphere radius.

Return Value

Returns trueTruetruetrue (True in Visual Basic) if the shpere is inside the field angle, falseFalsefalsefalse (False in Visual Basic) otherwise.

See Also