getVertex method

Vec3 getVertex(
  1. int i, [
  2. Vec3? out
])

Get vertex i. @return The "out" vector object

Implementation

Vec3 getVertex(int i, [Vec3? out]) {
  out ??= Vec3();
  final scale = this.scale;
  _getUnscaledVertex(i, out);
  out.x *= scale.x;
  out.y *= scale.y;
  out.z *= scale.z;
  return out;
}