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();
}