class HexaPDF::Content::GraphicObject::SolidArc
Parent | Object |
---|
This graphic object represents a solid elliptical arc, i.e. an arc that has an inner and an outer set of a/b values.
Thus it can be used to create
-
an (elliptical) disk (when the inner a/b are zero and the difference between start and end angles is greater than or equal to 360),
-
an (elliptical) sector (when the inner a/b are zero and the difference between start and end angles is less than 360),
-
an (elliptical) annulus (when the inner a/b are nonzero and the difference between start and end angles is greater than or equal to 360), and
-
an (elliptical) annular sector (when the inner a/b are nonzero and the difference between start and end angles is less than 360)
See: Arc
Attributes
x-coordinate of center point
y-coordinate of center point
End angle in degrees
Inclination in degrees of semi-major axis in respect to x-axis
Length of inner semi-major axis
Length of inner semi-minor axis
Length of outer semi-major axis
Length of outer semi-minor axis
Start angle in degrees
Public Class Methods
Creates and configures a new solid arc object.
See configure
for the allowed keyword arguments.
Creates a solid arc with default values (a unit disk at the origin).
Public Instance Methods
Configures the solid arc with
-
center point (
cx
,cy
), -
inner semi-major axis
inner_a
, -
inner semi-minor axis
inner_b
, -
outer semi-major axis
outer_a
, -
outer semi-minor axis
outer_b
, -
start angle of
start_angle
degrees, -
end angle of
end_angle
degrees and -
an inclination in respect to the x-axis of
inclination
degrees.
Any arguments not specified are not modified and retain their old value, see initialize for the inital values.
Returns self.