Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Basics » CreatePointGrid

CreatePointGrid


Header: AVL.h
Namespace: avl
Module: FoundationLite

Creates a grid of points.

Syntax

C++
C#
 
void avl::CreatePointGrid
(
	const avl::Point2D& inPoint,
	avl::Anchor2D::Type inAnchor,
	const int inRowCount,
	const int inColumnCount,
	const float inRowStep,
	const float inColumnStep,
	atl::Array<avl::Point2D>& outPointGrid
)

Parameters

Name Type Range Default Description
Input value inPoint const Point2D& A starting point of the created grid
Input value inAnchor Anchor2D::Type TopLeft Anchor of the reference point
Input value inRowCount const int 0 - + Number of rows the grid will have
Input value inColumnCount const int 0 - + Number of columns the grid will have
Input value inRowStep const float 0.0 - 1.0f Distance between consecutive rows of the created grid
Input value inColumnStep const float 0.0 - 1.0f Distance between consecutive columns of the created grid
Output value outPointGrid Array<Point2D>& Created point grid