Back to FabImage Library website

You are here: Start » Function Reference » Path » Path Basics » CreateSegmentPath

CreateSegmentPath


Header: FIL.h
Namespace: fil
Module: FoundationLite

Creates an open path containing collinear, equidistant points.

Syntax

C++
C#
 
void fil::CreateSegmentPath
(
	const fil::Point2D& inBegin,
	const fil::Point2D& inEnd,
	int inPointCount,
	fil::Path& outPath
)

Parameters

Name Type Range Default Description
Input value
inBegin const Point2D& First point of the path
Input value
inEnd const Point2D& Last point of the path
Input value
inPointCount int 2 - 2 Number of points in the created path
Output value
outPath Path& Output path

Description

The operation produces an open path that consist of inPointCount equidistant points selected along the segment between inBegin and inEnd.

Examples

CreateSegmentPath run with inPointCount = 5.

See Also

  • CreateArcPath – Creates an open path containing cocircular, equidistant points.
  • CreateCirclePath – Creates a closed path containing cocircular, equidistant points.