Ray Constructor
Creates a new instance of Ray.
Syntax
'Declaration
Public Sub New ( _
position As Vector3, _
direction As Vector3 _
)
public Ray (
Vector3 position,
Vector3 direction
)
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.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Ray Structure
Ray Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone