 |
MathUtilsGetCenterPosition(Vector3, PositionTypes, Vector3, Vector3, Vector3) Method |
Calculates center position from the specified position, position type, directions and 3D 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 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
Vector3center position
See Also