Urho.Ray Structure

Infinite straight line in a three-dimensional space

See Also: Ray

Syntax

public struct Ray

Remarks

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

Requirements

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

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.
override
Equals(Object) : Boolean
Compares the provided object with this ray
override
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

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