Esempio n. 1
0
        static public void createSlot(Point2d insPt, PlanarSketch ps, Vector2d dir, double a, double b)
        {
            dir.ScaleBy(a);
            Point2d ep = insPt.Copy();
            Point2d sp = insPt.Copy();

            ep.TranslateBy(dir);
            dir.ScaleBy(-1);
            sp.TranslateBy(dir);
            ps.AddStraightSlotByCenterToCenter(sp, ep, b);
        }
Esempio n. 2
0
        private Point2d pts(double height, double width)
        {
            Point2d pt  = m_TG.CreatePoint2d();
            Point2d pt1 = pt.Copy();

            pt1.X = height / 2; pt1.Y = width / 2;
            return(pt1);
        }