Как построить окружность по трем точкам?

Чтоб построить окружность необходимо найти ее центр и радиус. Воспользуйтесь готовым классом TTriangle для расчета центра и радиуса описанной около треугольника окружности, исходный код которого представлен на странице "Как рассчитать все параметры треугольника?"

procedure TForm1.Button1Click(Sender: TObject);
Var T: TTriangle;
   T := TTriangle.Create( 0, 0, 1, 0, 1, 1);
   PaintBox1.Canvas.Ellipse(T.CenterOut.X - T.RadiusOut, 
                            T.CenterOut.Y - T.RadiusOut,
                            T.CenterOut.X + T.RadiusOut, 
                            T.CenterOut.Y + T.RadiusOut);

Последние комментарии

  • Sorry, if not around the topic. I had a bit embarrassment. I randomly lost my essay and I urgently have to have to write a new one. I can not write with my own strength, so I wanted to apply for the essay writing service for revenuel. Located a few web content about this, but I don't know if you...
  • uknk chaturbate http://cumpee.win/post/lostinside-chaturbate-record Let's see what I can find in my nose. I put my pinkie in and I start digging as far as I can.Video is HD 1080pVideo contains: NOSE FETISH leraimholly webcam http://www.litecum.win/post/nikkicarr72-chaturbate-record-mp4 An...
  • pharmacy without dr prescriptions canadian pharmacy online pharmacy without a prescription generic viagra most reliable canadian pharmacies what is metoprolol used for