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