 |
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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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