API reference
API reference
Select your platform
No SDKs available
No versions available

Cone Struct

Defines a cone with a convex base.

Fields

The origin point of the cone.
The direction from the Origin to the center base of the cone.
The angular offset (in degrees) between the surface of the cone (excluding the base) and its center.
Value should be in range [0, 90).
The distance (euclidean, meters) from the cone origin to the base of the cone.
The cone base is convex, not flat, such that every point on the base is equidistant to the origin.
The ray from the origin to the the center base of the cone.

Constructors & Destructors

Does the cone contain the given point?
Cone
( Ray ray,
float radiusAngle,
float length )
Cone
( Vector3 origin,
Vector3 direction,
float radiusAngle,
float length )
Did you find this page helpful?