Back to Aurora Vision Library Lite website

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

CreateRing


Header: AVL.h
Namespace: avl

Creates a ring from an aligned point, inner and outer radius, and angle range.

Syntax

void avl::CreateRing
(
	const avl::Point2D& inPoint,
	avl::Anchor2D::Type inPointAnchor,
	float inInnerRadius,
	float inOuterRadius,
	avl::Ring2D& outRing
)

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 ring outer circle
Input value inInnerRadius float 0.0 - Inner ring radius
Input value inOuterRadius float 0.0 - Outer ring radius
Output value outRing Ring2D&