示例#1
0
        /// <summary>
        /// Copies data
        /// </summary>
        /// <param name="to">it to is null, new object is created</param>
        public override void CopyTo(ref ICoordSystem to)
        {
            ICoordSystemByVector tov = to as ICoordSystemByVector;

            CopyTo(ref tov);
            to = tov as ICoordSystem;
        }
示例#2
0
 /// <summary>
 /// Copies data
 /// </summary>
 /// <param name="to">it to is null, new object is created</param>
 public override void CopyTo(ref ICoordSystem to)
 {
     if ((to == null) || !(to is CoordSystemByZup))
     {
         to = new CoordSystemByZup();
     }
 }
示例#3
0
 public override ISegment3D CloneSegment(bool clonePoints)
 {
     if (clonePoints)
     {
         return(new ArcSegment3D(this));
     }
     else
     {
         ArcSegment3D newSeg    = new ArcSegment3D(StartPoint, IntermedPoint, EndPoint);
         ICoordSystem newSystem = null;
         LocalCoordinateSystem.CopyTo(ref newSystem);
         newSeg.LocalCoordinateSystem = newSystem;
         return(newSeg);
     }
 }
示例#4
0
 public abstract void CopyTo(ref ICoordSystem to);
示例#5
0
 public Cell(ICoordSystem system) : base(system)
 {
 }
示例#6
0
 public Container(ICoordSystem system) : base(system)
 {
 }
示例#7
0
 public Component(ICoordSystem system) => this.system = system;
示例#8
0
 public ShearingCoordSystem(ICoordSystem inner, double xShear)
 {
     Contract.Assert(inner != null);
     Contract.Assert(xShear > -1.0 && xShear < 1.0);
     _inner = inner;
     _xShear = xShear;
 }
示例#9
0
 public ScalingCoordSystem(ICoordSystem inner, double xAdj, double yAdj, double zAdj)
 {
     Contract.Assert(inner != null);
     Contract.Assert(xAdj > 0 && Utils.IsFinite(xAdj));
     Contract.Assert(yAdj > 0 && Utils.IsFinite(yAdj));
     Contract.Assert(zAdj > 0 && Utils.IsFinite(zAdj));
     _inner = inner;
     _xAdj = xAdj;
     _yAdj = yAdj;
     _zAdj = zAdj;
 }
示例#10
0
 public IdentityTranslator(ICoordSystem inner)
 {
     Contract.Assert(inner != null);
     _inner = inner;
 }