Skip to content

File length.h

File List > algorithm > length.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_LENGTH_H_
#define _SFCGAL_ALGORITHM_LENGTH_H_

#include "SFCGAL/config.h"

namespace SFCGAL {
class Geometry;
class LineString;
class GeometryCollection;
} // namespace SFCGAL

namespace SFCGAL {
namespace algorithm {

SFCGAL_API double
length(const Geometry &g);
SFCGAL_API double
length(const LineString &g);
SFCGAL_API double
length(const GeometryCollection &g);

SFCGAL_API double
length3D(const Geometry &g);
SFCGAL_API double
length3D(const LineString &g);
SFCGAL_API double
length3D(const GeometryCollection &g);

} // namespace algorithm
} // namespace SFCGAL

#endif