Frustum constructor

Frustum([
  1. Plane? p0,
  2. Plane? p1,
  3. Plane? p2,
  4. Plane? p3,
  5. Plane? p4,
  6. Plane? p5,
])

Implementation

Frustum([Plane? p0, Plane? p1, Plane? p2, Plane? p3, Plane? p4, Plane? p5]) {
  planes = [
    (p0 != null) ? p0 : Plane(),
    (p1 != null) ? p1 : Plane(),
    (p2 != null) ? p2 : Plane(),
    (p3 != null) ? p3 : Plane(),
    (p4 != null) ? p4 : Plane(),
    (p5 != null) ? p5 : Plane()
  ];
}