Hosted by
|
with Real_Numbers; use Real_Numbers;
with Real_Vectors; use Real_Vectors;
with Lines; use Lines;
package Straights is
type Straight is new Line with null record;
type Straight_Access is access all Straight;
function Create
(To : in Vector)
return Line_Access;
function Length
(Start : in Vector;
This : access Straight)
return Real;
procedure Scale
(This : access Straight;
Factor : in Real);
procedure Translate
(This : access Straight;
Offset : in Vector);
function Way_Point
(Start : in Vector;
This : access Straight;
Part : in Real)
return Vector;
function To_SVG
(This : access Straight;
Tolerance : in Real)
return String;
function To_Postscript
(This : access Straight;
Tolerance : in Real)
return String;
end Straights;
|