Skip to content

File area.h

File List > algorithm > area.h

Go to the documentation of this file

// Copyright (c) 2012-2013, IGN France.
// Copyright (c) 2012-2022, Oslandia.
// SPDX-License-Identifier: LGPL-2.0-or-later

#ifndef _SFCGAL_ALGORITHM_AREA_H_
#define _SFCGAL_ALGORITHM_AREA_H_

#include "SFCGAL/Geometry.h"
#include "SFCGAL/Kernel.h"

namespace SFCGAL {
namespace algorithm {
struct NoValidityCheck;

SFCGAL_API double
area(const Geometry &g);

SFCGAL_API double
area(const Geometry &g, NoValidityCheck);

SFCGAL_API Kernel::FT
           signedArea(const Triangle &g);
SFCGAL_API Kernel::FT
           signedArea(const LineString &g);

SFCGAL_API double
area(const Triangle &g);
SFCGAL_API double
area(const Polygon &g);
SFCGAL_API double
area(const GeometryCollection &g);
SFCGAL_API double
area(const TriangulatedSurface &g);
SFCGAL_API double
area(const PolyhedralSurface &g);

SFCGAL_API double
area3D(const Geometry &g);

SFCGAL_API double
area3D(const Geometry &g, NoValidityCheck);

SFCGAL_API double
area3D(const Polygon &g);
SFCGAL_API double
area3D(const GeometryCollection &g);

SFCGAL_API double
area3D(const PolyhedralSurface &g);

SFCGAL_API double
area3D(const Triangle &g);

SFCGAL_API double
area3D(const TriangulatedSurface &g);

} // namespace algorithm
} // namespace SFCGAL

#endif