Experimental: this API is experimental and might be changed or removed in the future.

BoundedPlane.GetCorners

Switch to Manual
public void GetCorners (out Vector3 p0, out Vector3 p1, out Vector3 p2, out Vector3 p3);

Parameters

p0第一个角的顶点。
p1第二个角的顶点。
p2第三个角的顶点。
p3第四个角的顶点。

Description

在设备空间中输出四个点,表示平面的四个角。这些角按顺时针排序。

“顺时针”绕组意味着平面的四个顶点 p2p2p2p3 围绕平面中心顺时针旋转。从顶点以此顺序出现的视角查看平面将被视为平面的“正面”。差乘 Vector3.Cross(p1-p0、p3-p0)将与 BoundedPlane.Normal 的方向相同。

Mesh也使用顺时针绕组。