CSharpGL.IBoundingBoxHelper.GetCenter C# (CSharp) Method

GetCenter() public static method

Gets center position of this bounding box.
public static GetCenter ( this boundingBox ) : vec3
boundingBox this
return vec3
        public static vec3 GetCenter(this IBoundingBox boundingBox)
        {
            return boundingBox.MaxPosition / 2 + boundingBox.MinPosition / 2;
        }