Click or drag to resize
Ab4d.SharpEngine logo

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

Calculates center position from the specified position, position type, directions and 2D 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 widthDirection,
	 in Vector3 heightDirection,
	Vector2 size
)

Parameters

position  Vector3
Vector3
positionType  PositionTypes
type of position
widthDirection  Vector3
widthDirection
heightDirection  Vector3
heightDirection
size  Vector2
size as Vector2

Return Value

Vector3
center position
See Also