TrianglePointGenerator.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: TrianglePointGenerator.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Right triangle point generator.
6 > Created Time: 2017/06/03
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_TRIANGLE_POINT_GENERATOR_H
10 #define CUBBYFLOW_TRIANGLE_POINT_GENERATOR_H
11 
13 
14 namespace CubbyFlow
15 {
20  {
21  public:
29  void ForEachPoint(const BoundingBox2D& boundingBox, double spacing,
30  const std::function<bool(const Vector2D&)>& callback) const override;
31  };
32 
33  using TrianglePointGeneratorPtr = std::shared_ptr<TrianglePointGenerator>;
34 }
35 
36 #endif
Abstract base class for 2-D point generator.
Definition: PointGenerator2.h:26
2-D axis-aligned bounding box class.
Definition: BoundingBox2.h:44
Definition: pybind11Utils.h:24
Right triangle point generator.
Definition: TrianglePointGenerator.h:19
2-D vector class.
Definition: Vector2.h:26
std::shared_ptr< TrianglePointGenerator > TrianglePointGeneratorPtr
Definition: TrianglePointGenerator.h:33
void ForEachPoint(const BoundingBox2D &boundingBox, double spacing, const std::function< bool(const Vector2D &)> &callback) const override
Invokes callback function for each right triangle points inside boundingBox.