예제 #1
0
파일: Line2D.cs 프로젝트: zerodowned/Core
        public Line2D(int xStart, int yStart, int xEnd, int yEnd)
        {
            _Start = new Point2D(xStart, yStart);
            _End   = new Point2D(xEnd, yEnd);

            _Rotation = Angle.FromPoints(_Start, _End);
            _Length   = _Start.GetDistance(_End);
        }
예제 #2
0
파일: Line2D.cs 프로젝트: zerodowned/Core
        public Line2D(IPoint2D start, IPoint2D end)
        {
            _Start = new Point2D(start);
            _End   = new Point2D(end);

            _Rotation = Angle.FromPoints(_Start, _End);
            _Length   = _Start.GetDistance(_End);
        }