copyNormalInto method

void copyNormalInto(
  1. Vector3 normal
)

Copy the normal of this into normal.

Implementation

void copyNormalInto(Vector3 normal) {
  final v0 = point0.clone()..sub(point1);
  normal
    ..setFrom(point2)
    ..sub(point1)
    ..crossInto(v0, normal)
    ..normalize();
}