Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Community Additions

ADD
Show:
© 2015 Microsoft