Exemplo n.º 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;
        }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 4
0
 public abstract void CopyTo(ref ICoordSystem to);
Exemplo n.º 5
0
 public Cell(ICoordSystem system) : base(system)
 {
 }
Exemplo n.º 6
0
 public Container(ICoordSystem system) : base(system)
 {
 }
Exemplo n.º 7
0
 public Component(ICoordSystem system) => this.system = system;
Exemplo n.º 8
0
 public ShearingCoordSystem(ICoordSystem inner, double xShear)
 {
     Contract.Assert(inner != null);
     Contract.Assert(xShear > -1.0 && xShear < 1.0);
     _inner = inner;
     _xShear = xShear;
 }
Exemplo n.º 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;
 }
Exemplo n.º 10
0
 public IdentityTranslator(ICoordSystem inner)
 {
     Contract.Assert(inner != null);
     _inner = inner;
 }