AttributeLike

interface AttributeLike

The read seam that fromBufferAttribute methods pull vector components through.

three.js vectors read from a BufferAttribute (a core concept). The pure math layer must not depend on core, so it depends on this narrow interface instead. A BufferAttribute type in a core layer can implement AttributeLike.

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.