AttributeLike

interface AttributeLike

A source of per-vertex vector components. Methods such as fromBufferAttribute and Box3.setFromBufferAttribute read from it.

Kite3D has no BufferAttribute class. Implement this interface on your own vertex buffer to read vectors from it.

Functions

Link copied to clipboard
abstract fun getW(index: Int): Double

Returns the w component of the vector at the given index.

Link copied to clipboard
abstract fun getX(index: Int): Double

Returns the x component of the vector at the given index.

Link copied to clipboard
abstract fun getY(index: Int): Double

Returns the y component of the vector at the given index.

Link copied to clipboard
abstract fun getZ(index: Int): Double

Returns the z component of the vector at the given index.