예제 #1
0
        private static ISphereEntity ByCenterPointRadiusCore(DSPoint centerPoint, double radius)
        {
            if (radius.LessThanOrEqualTo(0.0))
            {
                throw new ArgumentException(string.Format(Properties.Resources.LessThanZero, "radius"), "radius");
            }
            if (centerPoint == null)
            {
                throw new ArgumentNullException("centerPoint");
            }

            ISphereEntity entity = HostFactory.Factory.SphereByCenterPointRadius(centerPoint.PointEntity, radius);

            if (null == entity)
            {
                throw new System.Exception(string.Format(Properties.Resources.OperationFailed, "DSSphere.ByCenterPointRadius"));
            }
            return(entity);
        }
예제 #2
0
 private Sphere(ISphereEntity entity, bool persist = false)
     : base(entity, persist)
 {
     InitializeGuaranteedProperties();
 }
예제 #3
0
 private DSSphere(ISphereEntity entity, bool persist = false)
     : base(entity, persist)
 {
     InitializeGuaranteedProperties();
 }