You are here: Start » AVL.NET » AVL.RescaleCircle(AvlNet.Circle2D, AvlNet.Point2D?, float, bool, AvlNet.Circle2D)

AVL.RescaleCircle(AvlNet.Circle2D, AvlNet.Point2D?, float, bool, AvlNet.Circle2D)

Changes radius of a circle and translates its center in relation to a reference point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RescaleCircle(
	AvlNet.Circle2D inCircle,
	AvlNet.Point2D? inReferencePoint,
	float inScale,
	bool inInverse,
	out AvlNet.Circle2D outCircle
)

Parameters

inCircle
Type: AvlNet.Circle2D
inReferencePoint
Type: System.Nullable<AvlNet.Point2D>
The point to which the distance of the circle center is changed (no change by default), or null.
inScale
Type: System.Single
Scaling factor
inInverse
Type: System.Boolean
Switches to the inverse operation
outCircle
Type: AvlNet.Circle2D

Examples

RescaleCircle performed on the sample circle, inReferencePoint = auto, inScale = 0.5 and inInverse = false.

Errors

Error type Description
DomainError inScale cannot be zero in an inverse scaling in RescaleCircle.

See also