This topic has not yet been rated - Rate this topic

Ray Constructor

Creates a new instance of Ray.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public Ray (
         Vector3 position,
         Vector3 direction
)

Parameters

position
Type: Vector3
The starting point of the Ray.
direction
Type: Vector3
Unit vector describing the direction of the Ray.
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ