Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsGetCenterPosition(Vector3, PositionTypes, Vector3, Vector3, Vector3) Method

Calculates center position from the specified position, position type, directions and 3D size.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Vector3 GetCenterPosition(
	 in Vector3 position,
	PositionTypes positionType,
	 in Vector3 size,
	 in Vector3 sizeXDirection,
	 in Vector3 sizeYDirection
)

Parameters

position  Vector3
Vector3
positionType  PositionTypes
type of position
size  Vector3
size as Vector3
sizeXDirection  Vector3
widthDirection
sizeYDirection  Vector3
heightDirection

Return Value

Vector3
center position
See Also