![]() Next, we inherit the so-called “small triangle”: Result := TPointF.Create(StartPoint.X + InitialHeight / 2, Result := TPointF.Create(StartPoint.X - InitialHeight / 2, ![]() The first primitive that we add will be a line with an arrow (an ordinary triangle will be drawn with an arrow, but smaller).įirst, we introduce a triangle that "looks to the right." To do this, we will inherit a regular triangle and rewrite the Polygon method, which is responsible for the coordinates of the vertices.įunction TmsTriangleDirectionRight.Polygon: TPolygon Now is the time to move on to more complex shapes (including composite ones). Also, the post will show the techniques from the OOP that we use.Ī number of lines (differing only in dashed, dot-dash, dot-to-dot, etc) that we added were made by analogy with the description of the previous primitives. Both will remind us of vector algebra and trigonometry. ![]() ![]() In this article, I will continue the story of how we write under FireMonkey.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |