用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:ray:ray

Ray 射线

struct in UnityEngine

Description 描述

Representation of rays.

射线的结构描述。

A ray is an infinite line starting at origin and going in some direction.

Ray是具有开始点和方向的无穷线。

Variables 变量

directionThe direction of the ray.
射线的方向。
originThe origin point of the ray.
射线的原点。

Constructors 构造器

RayCreates a ray starting at origin along direction.
创建一条射线从origin开始,沿direction方向。

Public Functions 共有函数

GetPointReturns a point at distance units along the ray.
返回射线上指定距离的点。
ToStringReturns a nicely formatted string for this ray.
返回该射线格式化好的字符串。
script/unityengine/classes/ray/ray.txt · 最后更改: 2016/08/02 05:36 (外部编辑)