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); }
private Sphere(ISphereEntity entity, bool persist = false) : base(entity, persist) { InitializeGuaranteedProperties(); }
private DSSphere(ISphereEntity entity, bool persist = false) : base(entity, persist) { InitializeGuaranteedProperties(); }