copyNormalInto method

void copyNormalInto (Vector3 normal)

Copy the normal of this into normal.

Implementation

void copyNormalInto(Vector3 normal) {
  final Vector3 v0 = _point0.clone()..sub(_point1);
  normal
    ..setFrom(_point2)
    ..sub(_point1)
    ..crossInto(v0, normal)
    ..normalize();
}