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

Cone Struct

Defines a cone with a convex base.

Constructors

Cone ( ray , radiusAngle , length )
Signature
Oculus.Interaction.Cone.Cone(Ray ray, float radiusAngle, float length)
Parameters
ray: Ray
radiusAngle: float
length: float
Cone ( origin , direction , radiusAngle , length )
Signature
Oculus.Interaction.Cone.Cone(Vector3 origin, Vector3 direction, float radiusAngle, float length)
Parameters
origin: Vector3
direction: Vector3
radiusAngle: float
length: float

Fields

Direction : readonly Vector3
The direction from the Origin to the center base of the cone.
Signature
readonly Vector3 Oculus.Interaction.Cone.Direction
Length : readonly float
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.
Signature
readonly float Oculus.Interaction.Cone.Length
Origin : readonly Vector3
The origin point of the cone.
Signature
readonly Vector3 Oculus.Interaction.Cone.Origin
RadiusAngle : readonly float
The angular offset (in degrees) between the surface of the cone (excluding the base) and its center.
Value should be in range [0, 90).
Signature
readonly float Oculus.Interaction.Cone.RadiusAngle
Ray : Ray
The ray from the origin to the the center base of the cone.
Signature
Ray Oculus.Interaction.Cone.Ray

Methods

Contains ( point )
Does the cone contain the given point?
Signature
bool Oculus.Interaction.Cone.Contains(Vector3 point)
Parameters
point: Vector3
Returns
bool