fromPoints static method

Plane fromPoints(
  1. Vector3 a,
  2. Vector3 b,
  3. Vector3 c
)

Implementation

static Plane fromPoints(Vector3 a, Vector3 b, Vector3 c) {
  final n = Vector3().setFrom(b).sub(a).cross(Vector3().setFrom(c).sub(a)).normalize();
  return Plane(n.clone(),n.dot(a));
}