You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Constructions » AVL.CreateCoordinateSystemFromRectangle

AVL.CreateCoordinateSystemFromRectangle

Creates a coordinate system from a rectangle.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateCoordinateSystemFromRectangle
(
	AvlNet.Rectangle2D inRectangle,
	AvlNet.Anchor2D inPointAnchor,
	float inRelativeAngle,
	float inScale,
	float inScaleDivisor,
	out AvlNet.CoordinateSystem2D outCoordinateSystem
)

Parameters

Name Type Range Default Description
inRectangleAvlNet.Rectangle2D
inPointAnchorAvlNet.Anchor2DTopLeftDefault value: TopLeft.
inRelativeAnglefloat
inScalefloat<0.001f, INF>1.0fDefault value: 1.0f.
inScaleDivisorfloat<0.001f, INF>1.0fDefault value: 1.0f.
outCoordinateSystemAvlNet.CoordinateSystem2D

Examples

A local coordinate system created from a rectangle.

Remarks

Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.

See also