getCorners method

void getCorners(
  1. Vector3 a,
  2. Vector3 b,
  3. Vector3 c,
  4. Vector3 d,
  5. Vector3 e,
  6. Vector3 f,
  7. Vector3 g,
  8. Vector3 h,
)

Implementation

void getCorners(Vector3 a,Vector3 b,Vector3 c,Vector3 d,Vector3 e,Vector3 f,Vector3 g,Vector3 h) {
  final l = lowerBound;
  final u = upperBound;

  a.setFrom(l);
  b.setValues(u.x, l.y, l.z);
  c.setValues(u.x, u.y, l.z);
  d.setValues(l.x, u.y, u.z);
  e.setValues(u.x, l.y, u.z);
  f.setValues(l.x, u.y, l.z);
  g.setValues(l.x, l.y, u.z);
  h.setFrom(u);
}