CubbyFlow::TrianglePointGenerator Class Referencefinal

Right triangle point generator. More...

#include <Core/PointGenerator/TrianglePointGenerator.h>

Inheritance diagram for CubbyFlow::TrianglePointGenerator:
CubbyFlow::PointGenerator2

Public Member Functions

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. More...
 
- Public Member Functions inherited from CubbyFlow::PointGenerator2
 PointGenerator2 ()
 
virtual ~PointGenerator2 ()
 
void Generate (const BoundingBox2D &boundingBox, double spacing, Array1< Vector2D > *points) const
 

Detailed Description

Right triangle point generator.

Member Function Documentation

◆ ForEachPoint()

void CubbyFlow::TrianglePointGenerator::ForEachPoint ( const BoundingBox2D boundingBox,
double  spacing,
const std::function< bool(const Vector2D &)> &  callback 
) const
overridevirtual

Invokes callback function for each right triangle points inside boundingBox.

This function iterates every right triangle points inside boundingBox where spacing is the size of the right triangle structure.

Implements CubbyFlow::PointGenerator2.


The documentation for this class was generated from the following file: