ArrowGenerator
-
class
cee.utils.ArrowGenerator() Helper class to tesselate an arrow
Constructors
-
cee.utils.ArrowGenerator.constructor() - ArrowGenerator():
ArrowGeneratorReturns:
ArrowGenerator
Properties
-
cee.utils.ArrowGenerator.m_indices inherited
m_indices: number[]
Methods
-
cee.utils.ArrowGenerator.configure() - configure(config:
ArrowGeneratorConfig): voidSpecify the arrow by providing its relative proportions.
Parameters
config:ArrowGeneratorConfigReturns: void
-
cee.utils.ArrowGenerator.fillVerticesIndices() inherited
fillVerticesIndices(vertices: Float32Array, indices: number[]): voidFills the members
m_verticesandm_indicesof this class.Parameters
vertices: Float32Array
The vertices in the format x,y,z,x,y,z,…indices: number[]
The indices for the verticesReturns: void
-
cee.utils.ArrowGenerator.generate() - generate(): void
Generate the arrow
Returns: void
-
cee.utils.ArrowGenerator.generateReverse() - generateReverse(): void
Generate the reverse arrow, with the arrow head pointing into the origin.
Returns: void
-
cee.utils.ArrowGenerator.getIndices() inherited
getIndices(): number[]Get the indices of triangles needed to render the solid object
Returns: number[]
-
cee.utils.ArrowGenerator.getVertices() inherited
getVertices():Vec3[]Get the vertices of the solid object as Vec3
Returns:
Vec3[]
-
cee.utils.ArrowGenerator.getVerticesNumber() inherited
getVerticesNumber(): number[]Get the vertices of the solid object as a number array with <x,y,z,x,y,z,…>
Returns: number[]