getNormalVector method

Vector3 getNormalVector()

Implementation

Vector3 getNormalVector() {
  var anchors = getTip().getStartAnchors().take(3).toList();
  var p0 = anchors[0];
  var p1 = anchors[1];
  var p2 = anchors[2];
  return (p2 - p1).cross(p1 - p0).normalize();
}