private MeshDimensions CalculateDimensions(Vector3 scaling) { MeshDimensions dimensions = new MeshDimensions( minX: _Smallest.x * scaling.x, maxX: _Largest.x * scaling.x, minY: _Smallest.y * scaling.y, maxY: _Largest.y * scaling.y, minZ: _Smallest.z * scaling.z, maxZ: _Largest.z * scaling.z ); return(dimensions); }
private void CalculateMinAndMax() { WorldScaleDimensions = CalculateDimensions(_Scale); UnscaledDimensions = CalculateDimensions(new Vector3(1, 1, 1)); }