25 vertices.begin(), vertices.end(), [&](
const R3& vertex) ->
double {
26 return (rotation ? rotation->transformed(vertex) : vertex).z();
34 vertices.begin(), vertices.end(), [&](
const R3& vertex) ->
double {
35 return (rotation ? rotation->transformed(vertex) : vertex).z();
Defines and implements namespace BaseUtils::algo with some algorithms.
#define ASSERT(condition)
Defines interface IShape3D.
Defines interface IDecoratableBorn.
Declares class RotMatrix.
Defines IRotation classes.
Abstract base class for rotations.
double max_value(const Iterator &begin, const Iterator &end, const Evaluator &evaluate)
Returns the maximum value of function evaluate as applied to the elements of an iterator range.
double min_value(const Iterator &begin, const Iterator &end, const Evaluator &evaluate)
Returns the minimum value of function evaluate as applied to the elements of an iterator range.
double BottomZ(const std::vector< R3 > &vertices, const IRotation *rotation)
Calculates the z-coordinate of the lowest vertex after rotation.
double TopZ(const std::vector< R3 > &vertices, const IRotation *rotation)
Calculates the z-coordinate of the highest vertex after rotation.