Click or drag to resize
Ab4d.SharpEngine logo

AxisWithLabelsBaseNodeGetRelativeValue Method

GetRelativeValue returns a relative value in range from 0 to 1 from the specified absoluteValue (where the value lies between the AxisStartPosition and AxisEndPosition). Value 0 is returned when absoluteValue is set to MinimumValue. Value 1 is returned when absoluteValue is set to the value returned by the GetUsedMaximumValue method. Returned value is negative when absoluteValue is smaller then MinimumValue and bigger then 1 when the absoluteValue is bigger then used maximum value.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public float GetRelativeValue(
	float absoluteValue
)

Parameters

absoluteValue  Single
value that will be converted into a relative value

Return Value

Single
relative value in range from 0 to 1 from the specified absoluteValue
See Also