Urho.Ray Structure

Infinite straight line in a three-dimensional space

See Also: Ray


public struct Ray


Rays are lines that start at one point in space and point towards a specific direction


Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions:

The members of Urho.Ray are listed below.

See Also: ValueType

Public Constructors

Constructs from origin and direction, the direction will be normalized.

Public Fields

DirectionVector3. Ray direction
OriginVector3. Ray origin.

Public Methods

ClosestPoint(Ray) : Vector3
Return closest point to another ray.
Distance(Vector3) : Single
Return distance of a point from the ray.
Equals(Object) : Boolean
Compares the provided object with this ray
GetHashCode() : Int32
Returns the Ray’s hashcode.
HitDistance(Plane) : Single
Computes the hit distance to a plane.
Project(Vector3) : Vector3
Project a point on the ray

Public Operators

Equality(Ray, Ray)Compares two rays for equality
Inequality(Ray, Ray)Compares two rays and determine if they are not equal.