src/ui/scenic/lib/gfx/resources/view_holder.cc
// Generates an escher::BoundingBox from the given view properties.
// TODO(SCN-1495) Create internal ViewProperties type.
Generates an escher::BoundingBox from the given view properties.
TODO(SCN-1495) Create internal ViewProperties type.
Generates an escher :: BoundingBox from the given view properties . TODO ( SCN - 1495 ) Create internal ViewProperties type .
escher::BoundingBox ViewHolder::GetLocalBoundingBox() const {
  escher::vec3 min =
      Unwrap(view_properties_.bounding_box.min) + Unwrap(view_properties_.inset_from_min);
  escher::vec3 max =
      Unwrap(view_properties_.bounding_box.max) - Unwrap(view_properties_.inset_from_max);
  FX_DCHECK(glm::all(glm::lessThan(min, max)));
  return escher::BoundingBox(min, max);
}
escher :: BoundingBox ViewHolder :: GetLocalBoundingBox ( ) const { escher :: vec3 min = Unwrap ( view_properties_ . bounding_box . min ) + Unwrap ( view_properties_ . inset_from_min ) ; escher :: vec3 max = Unwrap ( view_properties_ . bounding_box . max ) - Unwrap ( view_properties_ . inset_from_max ) ; FX_DCHECK ( glm :: all ( glm :: lessThan ( min , max ) ) ) ; return escher :: BoundingBox ( min , max ) ; }
Generates an escher::BoundingBox from the given view properties.
Generates an escher :: BoundingBox from the given view properties .