Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Basics » CreatePointGrid
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Creates a grid of points.
Syntax
C++
C#
void fil::CreatePointGrid ( const fil::Point2D& inPoint, fil::Anchor2D::Type inAnchor, const int inRowCount, const int inColumnCount, const float inRowStep, const float inColumnStep, ftl::Array<fil::Point2D>& outPointGrid )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inPoint | const Point2D& | A starting point of the created grid | ||
![]() |
inAnchor | Anchor2D::Type | TopLeft | Anchor of the reference point | |
![]() |
inRowCount | const int | 0 - +![]() |
Number of rows the grid will have | |
![]() |
inColumnCount | const int | 0 - +![]() |
Number of columns the grid will have | |
![]() |
inRowStep | const float | 0.0 - ![]() |
1.0f | Distance between consecutive rows of the created grid |
![]() |
inColumnStep | const float | 0.0 - ![]() |
1.0f | Distance between consecutive columns of the created grid |
![]() |
outPointGrid | Array<Point2D>& | Created point grid |