private void UpdateGeometry() { _line = new Line2D(_v1, _v2); _rect = EmbracingRect.Empty; _rect.ExtendBy(_v1.X, _v1.Y); _rect.ExtendBy(_v2.X, _v2.Y); }
private void UpdateGeometry() { Vector2D.SortByY(ref _v1, ref _v2, ref _v3); _line1 = new Line2D(_v1, _v2); _line2 = new Line2D(_v2, _v3); _line3 = new Line2D(_v1, _v3); _test1 = _line1.Substitute(_v3.X, _v3.Y); _test2 = _line2.Substitute(_v1.X, _v1.Y); _test3 = _line3.Substitute(_v2.X, _v2.Y); _rect = EmbracingRect.Empty; _rect.ExtendBy(_v1.X, _v1.Y); _rect.ExtendBy(_v2.X, _v2.Y); _rect.ExtendBy(_v3.X, _v3.Y); }