public AxisAlignedBoundingBox ( System.Vector3 minXYZ, System.Vector3 maxXYZ ) : System | ||
minXYZ | System.Vector3 | |
maxXYZ | System.Vector3 | |
return | System |
public AxisAlignedBoundingBox(Vector3 minXYZ, Vector3 maxXYZ)
{
if (maxXYZ.x < minXYZ.x || maxXYZ.y < minXYZ.y || maxXYZ.z < minXYZ.z)
{
throw new ArgumentException("All values of min must be less than all values in max.");
}
this.minXYZ = minXYZ;
this.maxXYZ = maxXYZ;
}