Back to Aurora Vision Library website

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

CreateArc


Header: AVL.h
Namespace: avl
Module: FoundationLite

Creates an arc from an aligned point, radius, and angle range.

Syntax

C++
C#
 
void avl::CreateArc
(
	const avl::Point2D& inPoint,
	avl::Anchor2D::Type inPointAnchor,
	float inRadius,
	float inStartAngle,
	float inSweepAngle,
	avl::Arc2D& outArc
)

Parameters

Name Type Range Default Description
Input value inPoint const Point2D&
Input value inPointAnchor Anchor2D::Type MiddleCenter Alignment of the point relatively to the box of the circle
Input value inRadius float 0.0 - Circle radius
Input value inStartAngle float Direction at which the arc begins
Input value inSweepAngle float Length of the arc (may be negative)
Output value outArc Arc2D&