Click or drag to resize
AB4D logo

ModelUtilsGetModelTranslationVector3D Method

GetModelTranslationVector3D returns a Vector3D that defines how much the model with modelBounds needs to be translated in order to be positioned at a targetPosition that represents a targetPositionType.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static Vector3D GetModelTranslationVector3D(
	Rect3D modelBounds,
	Point3D targetPosition,
	PositionTypes targetPositionType
)

Parameters

modelBounds  Rect3D
Model bounding box as Rect3D
targetPosition  Point3D
position as Point3D
targetPositionType  PositionTypes
type of position

Return Value

Vector3D
Vector3D that defines how much the model with modelBounds needs to be translated
See Also