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