CSharpGL.IBoundingBoxHelper.GetCenter C# (CSharp) Метод

GetCenter() публичный статический Метод

Gets center position of this bounding box.
public static GetCenter ( this boundingBox ) : vec3
boundingBox this
Результат vec3
        public static vec3 GetCenter(this IBoundingBox boundingBox)
        {
            return boundingBox.MaxPosition / 2 + boundingBox.MinPosition / 2;
        }