C# Class UnityEngine.Ray2D

A ray in 2D space.

显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetPoint ( float distance ) : Vector2

Get a point that lies a given distance along a ray.

Ray2D ( Vector2 origin, Vector2 direction ) : System

Creates a 2D ray starting at origin along direction.

ToString ( ) : string
ToString ( string format ) : string

Method Details

GetPoint() public method

Get a point that lies a given distance along a ray.

public GetPoint ( float distance ) : Vector2
distance float Distance of the desired point along the path of the ray.
return Vector2

Ray2D() public method

Creates a 2D ray starting at origin along direction.

public Ray2D ( Vector2 origin, Vector2 direction ) : System
origin Vector2
direction Vector2
return System

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( string format ) : string
format string
return string