 |
MathUtilsGetCenterPosition(Vector3, PositionTypes, Vector3, Vector3, Vector2) Method |
Calculates center position from the specified position, position type, directions and 2D size.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic 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
Vector3center position
See Also