PartArrows
-
class
cee.mrk.
PartArrows
() A part that can show arrows in a
MarkupModel
.Use
MarkupModel.addArrowsPart
to create a new instance of this class.
Accessors
Accessors
Methods
addArrow
-
PartArrows.
addArrow
(position, direction) Arguments: - position (
Vec3Like
) – None - direction (
Vec3Like
) – None
Add an arrow with position and direction to the part
Return type: void - position (
rayIntersect
-
PartArrows.
rayIntersect
(_ray, _hitItem) Arguments: - _ray (
Ray
) – None - _hitItem (
PartHitItem
) – None
Not implemented, always returns false
Return type: boolean - _ray (
setArrows
-
PartArrows.
setArrows
(vertexArray, vectorArray) Arguments: - vertexArray (
ArrayLike
) – None - vectorArray (
ArrayLike
) – None
Sets the arrows by providing the vertices (start points) and the vectors (direction and length)
The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, …)
Return type: void - vertexArray (
setArrowsFloat32Array
-
PartArrows.
setArrowsFloat32Array
(vertexArray, vectorArray) Arguments: - vertexArray (
Float32Array
) – None - vectorArray (
Float32Array
) – None
Sets the arrows by providing the vertices (start points) and the vectors (direction and length)
The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, …)
This is the most optimal setting as the PartArrows will just hold a reference to the passed array and not copy any data.
Return type: void - vertexArray (