fromBufferAttribute method

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

Implementation

Vector4 fromBufferAttribute(BufferAttribute attribute, int index) {
  x = attribute.getX(index)!;
  y = attribute.getY(index)!;
  z = attribute.getZ(index)!;
  w = attribute.getW(index) ?? 0;

  return this;
}