目录

PlaneShape

Class Info

public class PlaneShape extends Shape

平面。右手坐标系中X、Z轴组成的平面。

Public Method Summary

Qualifier and Type

Method Name and Description

Vector3

getNormal()

获取平面的法线向量。

float

getOffset()

获取平面的垂直偏移。

PlaneShape

setNormal(Vector3 value)

设置平面的法线向量。

PlaneShape

setOffset(float value)

设置平面的垂直偏移。

Public Methods

[h2]getNormal

Method

public Vector3 getNormal()

获取平面的法线向量。

Returns

Type

Description

Vector3

平面的法线向量。

[h2]getOffset

Method

public float getOffset()

获取平面的垂直偏移。

Returns

Type

Description

float

垂直偏移,右手坐标系下,平面的Y坐标分量。

[h2]setNormal

Method

public PlaneShape setNormal(Vector3 value)

设置平面的法线向量。

Parameters

Name

Description

value

平面的法线向量。

Returns

Type

Description

PlaneShape

自身实例。

[h2]setOffset

Method

public PlaneShape setOffset(float value)

设置平面的垂直偏移。

Parameters

Name

Description

value

垂直偏移,右手坐标系下,平面的Y坐标分量。

Returns

Type

Description

PlaneShape

自身实例。