Skip to content

File rotate.h

File List > algorithm > rotate.h

Go to the documentation of this file

// Copyright (c) 2024-2024, SFCGAL Contributors and Oslandia.
// SPDX-License-Identifier: LGPL-2.0-or-later

#ifndef _SFCGAL_ALGORITHM_ROTATE_H_
#define _SFCGAL_ALGORITHM_ROTATE_H_

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

namespace SFCGAL {
namespace algorithm {

SFCGAL_API void
rotate(Geometry &g, const Kernel::FT &angle);

SFCGAL_API void
rotate(Geometry &g, const Kernel::FT &angle, const Point &origin);

SFCGAL_API void
rotate(Geometry &g, const Kernel::FT &angle, const Kernel::Vector_3 &axis,
       const Point &origin = Point(0, 0, 0));

SFCGAL_API void
rotateX(Geometry &g, const Kernel::FT &angle);

SFCGAL_API void
rotateY(Geometry &g, const Kernel::FT &angle);

SFCGAL_API void
rotateZ(Geometry &g, const Kernel::FT &angle);

} // namespace algorithm
} // namespace SFCGAL

#endif // _SFCGAL_ALGORITHM_ROTATE_H_