box_area.h

Back to Area

pastel/geometry/area/

// Description: Area of a box
// Documentation: area.txt

#ifndef PASTELGEOMETRY_BOX_AREA_H
#define PASTELGEOMETRY_BOX_AREA_H

#include "pastel/geometry/shape/alignedbox.h"
#include "pastel/geometry/shape/box.h"

namespace Pastel
{

    template <typename Real, integer N>
    Real area(const AlignedBox<Real, N>& box);

    template <typename Real, integer N>
    Real area(const Box<Real, N>& box);

    template <typename Real, typename Expression>
    Real boxArea(const VectorExpression<Real, 1, Expression>& width);

    template <typename Real, integer N, typename Expression>
    Real boxArea(const VectorExpression<Real, N, Expression>& width);

}

#include "pastel/geometry/area/box_area.hpp"

#endif