共用方式為


Ray Constructor

Creates a new instance of Ray.

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

Syntax

public Ray (
         Vector3 position,
         Vector3 direction
)

Parameters

  • position
    The starting point of the Ray.
  • direction
    Unit vector describing the direction of the Ray.

See Also

Reference

Ray Structure
Ray Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista