ArrowGenerator
- class cee.utils.ArrowGenerator()
Helper class to tesselate an arrow
Constructors
Properties
Methods
Constructors
constructor
- cee.utils.ArrowGenerator.constructor()
- Return type
cee.utils.ArrowGenerator
Properties
- cee.utils.ArrowGenerator.m_indices
- cee.utils.ArrowGenerator.m_vertices
Methods
configure
- cee.utils.ArrowGenerator.configure(config)
Specify the arrow by providing its relative proportions.
- Arguments
config (
cee.utils.ArrowGeneratorConfig
) –
- Return type
void
fillVerticesIndices
- cee.utils.ArrowGenerator.fillVerticesIndices(vertices, indices)
Fills the members
m_vertices
andm_indices
of this class.- Arguments
vertices (
Float32Array
) – The vertices in the format x,y,z,x,y,z,…indices (
[number]
) – The indices for the vertices
- Return type
void
generate
- cee.utils.ArrowGenerator.generate()
Generate the arrow
- Return type
void
generateReverse
- cee.utils.ArrowGenerator.generateReverse()
Generate the reverse arrow, with the arrow head pointing into the origin.
- Return type
void
getIndices
- cee.utils.ArrowGenerator.getIndices()
Get the indices of triangles needed to render the solid object
- Return type
[number]
getVertices
- cee.utils.ArrowGenerator.getVertices()
Get the vertices of the solid object as Vec3
- Return type
[cee.Vec3]
getVerticesNumber
- cee.utils.ArrowGenerator.getVerticesNumber()
Get the vertices of the solid object as a number array with <x,y,z,x,y,z,…>
- Return type
[number]