ShopToolsUtilTranslateOffset(FArea, Single, Single, OffsetLeftRightEnum, Single) Method

Translate the relative positional offset from the visual perspective to absolute positions based upon the physical anchors on the table or material.

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
public static float TranslateOffset(
	FArea area,
	float subjectWidth,
	float offset,
	OffsetLeftRightEnum offsetType,
	float relativeOffset = -3.402823E+38f
)

Parameters

area  FArea
Reference to the area from which the offset is relative. This value represents physical coordinates.
subjectWidth  Single
Width of the subject being positioned.
offset  Single
The offset to polarize.
offsetType  OffsetLeftRightEnum
The visual relative direction with which the offset is associated.
relativeOffset  Single  (Optional)
A base offset for the entire space.

Return Value

Single
The physical offset, relative to the established direction of travel on the table.

Remarks

This method assumes that the left and top positions constitute the local anchor of the area.

See Also