fromBufferAttribute method

Vector3 fromBufferAttribute(
  1. BufferAttribute<NativeArray<num>> attribute,
  2. int index
)

Implementation

Vector3 fromBufferAttribute(BufferAttribute attribute, int index) {
  x = attribute.getX(index)!.toDouble();
  y = attribute.getY(index)!.toDouble();
  z = attribute.getZ(index)!.toDouble();

  return this;
}