You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » FIL.RescalePoint

FIL.RescalePoint

Changes the distance of a point to a reference point.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void RescalePoint
(
	FilNet.Point2D inPoint,
	FilNet.Point2D inReferencePoint,
	float inScale,
	bool inInverse,
	out FilNet.Point2D outPoint
)

Parameters

Name Type Range Default Description
inPointFilNet.Point2D
inReferencePointFilNet.Point2DPoint to which the distance will be changed.
inScalefloat1.0fScaling factor. Default value: 1.0f.
inInverseboolSwitches to the inverse operation.
outPointFilNet.Point2D

Examples

RescalePoint performed on the sample point, inReferencePoint = (150.0, 150.0), inScale = -1.5 and inInverse = false. The inReferencePoint point is drawn on the first image in blue.

Errors

List of possible exceptions:

Error type Description
DomainError Scale cannot be zero in an inverse rescaling of a point in RescalePoint.

See also