Beispiel #1
0
        public override object Clone()
        {
            AreaMagnet am = new AreaMagnet(position, normal);
            copyToMagnet(am);
            screenNormal.CopyTo(am.screenNormal, 0);
            am.snapPosition = snapPosition;
            am.normal = normal;

            return am;
        }
        public SnapController()
        {
            paintMagnets = new List <Magnet>();
            snapMagnet   = null;

            points = new PointMagnetsCollection();
            lines  = new LineMagnetsCollection();
            area   = new AreaMagnet(PointMagnet.ZeroMagnet.Position, CommonAxes.GlobalAxes[2]);

            painter = new SnapPainter();
        }
Beispiel #3
0
        public override object Clone()
        {
            AreaMagnet am = new AreaMagnet(position, normal);

            copyToMagnet(am);
            screenNormal.CopyTo(am.screenNormal, 0);
            am.snapPosition = snapPosition;
            am.normal       = normal;

            return(am);
        }
        public SnapController()
        {
            paintMagnets = new List<Magnet>();
            snapMagnet = null;

            points = new PointMagnetsCollection();
            lines = new LineMagnetsCollection();
            area = new AreaMagnet(PointMagnet.ZeroMagnet.Position, CommonAxes.GlobalAxes[2]);

            painter = new SnapPainter();
        }