fromBuffer method

Quaternion fromBuffer(
  1. BufferAttribute<NativeArray<num>> attribute,
  2. int index
)

Implementation

Quaternion fromBuffer(BufferAttribute attribute, int index) {
  _x = attribute.getX(index)!.toDouble();
  _y = attribute.getY(index)!.toDouble();
  _z = attribute.getZ(index)!.toDouble();
  _w = attribute.getW(index)!.toDouble();

  return this;
}