文档管理中心
API参考图形引擎服务Androidcom.huawei.hms.scene.mathClass SummaryElement

Element

展开

Class Info

public class Element

点源。

Public Constructor Summary

展开

Constructor Name

Element(Vector3 position, float lineWidth, float texCoord, Vector3 normal, Vector4 color)

构造方法,使用位置、线宽、纹理坐标、法线以及颜色初始化Element

Public Method Summary

展开

Qualifier and Type

Method Name and Description

Vector4

getColor()

获取点源的颜色。

float

getLineWidth()

获取点源的线宽。

Vector3

getNormal()

获取点源的法线。

Vector3

getPosition()

获取点源的位置。

float

getTexCoord()

获取点源的纹理坐标。

Public Constructors

Element

展开

Constructor

public Element(Vector3 position, float lineWidth, float texCoord, Vector3 normal, Vector4 color)

构造方法,使用位置、线宽、纹理坐标、法线以及颜色初始化Element

Public Methods

getColor

展开

Method

public Vector4 getColor()

获取点源的颜色。

Returns

展开

Type

Description

Vector4

点源的颜色。

getLineWidth

展开

Method

public float getLineWidth()

获取点源的线宽。

Returns

展开

Type

Description

float

点源的线宽。

getNormal

展开

Method

public Vector3 getNormal()

获取点源的颜色。

Returns

展开

Type

Description

Vector3

点源的法线。

getPosition

展开

Method

public Vector3 getPosition()

获取点源的位置。

Returns

展开

Type

Description

Vector3

点源的位置。

getTexCoord

展开

Method

public float getTexCoord()

获取点源的纹理坐标。

Returns

展开

Type

Description

float

点源的纹理坐标。

在 API参考 中进行搜索
请输入您想要搜索的关键词