/usr/include/opencascade/Bnd_Box.lxx is in libopencascade-foundation-dev 6.5.0.dfsg-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | // File: Bnd_Box.lxx
// Created: 14.02.05 12:38:11
// Author: Alexey MORENOV
// Copyright: Open CASCADE 2005
//=======================================================================
//function : SquareExtent
//purpose : Computes the squared diagonal
//=======================================================================
inline Standard_Real Bnd_Box::SquareExtent() const
{
if ( IsVoid() ) return 0.;
Standard_Real dx = Xmax-Xmin+Gap;
Standard_Real dy = Ymax-Ymin+Gap;
Standard_Real dz = Zmax-Zmin+Gap;
return dx*dx + dy*dy + dz*dz;
}
|