Skip to content

File RoundTransform.h

File List > detail > transform > RoundTransform.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_TRANSFORM_ROUNDTRANSFORM_H_
#define _SFCGAL_TRANSFORM_ROUNDTRANSFORM_H_

#include "SFCGAL/config.h"

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

namespace SFCGAL {
namespace transform {

class SFCGAL_API RoundTransform : public Transform {
public:
  RoundTransform(const long &scale = 1);

  /*
   * [SFCGAL::Transform]
   */
  virtual void
  transform(Point &p);

private:
  long _scale;
};

} // namespace transform
} // namespace SFCGAL

#endif