Back to FabImage Library Lite website

You are here: Start » Geometry 2D » Geometry 2D Basics » CreateSegment

CreateSegment


Header: FIL.h
Namespace: fil

Produces a segment of given parameters.

Syntax

void fil::CreateSegment
(
	const fil::Point2D& inPoint,
	float inPointAnchor,
	float inDirection,
	float inLength,
	fil::Segment2D& outSegment
)

Parameters

Name Type Range Default Description
Input value
inPoint const Point2D& A point on the created segment
Input value
inPointAnchor float 0.0 - 1.0 Anchor point, 0 means the beginning, 1 means the end of the segment
Input value
inDirection float Desired direction of the segment in degrees
Input value
inLength float Desired length of the segment in pixels
Output value
outSegment Segment2D& The resulting segment