getNormalAt method

void getNormalAt(
  1. double x,
  2. double y,
  3. bool edgeClamp,
  4. Vec3 result,
)

Implementation

void getNormalAt(double x, double y, bool edgeClamp, Vec3 result) {
  final a = _getNormalAtA;
  final b = _getNormalAtB;
  final c = _getNormalAtC;
  final e0 = _getNormalAtE0;
  final e1 = _getNormalAtE1;
  getTriangleAt(x, y, edgeClamp, a, b, c);
  b.vsub(a, e0);
  c.vsub(a, e1);
  e0.cross(e1, result);
  result.normalize();
}