Geomet...llipse(3pm)
π Geometry::Primitive::Ellipse β the "An Ellipse" page, bestie π
okay so this is from the User Contributed Perl Documentation corner of the 3pm manual, and it's literally all about Geometry::Primitive::Ellipse. yes the header truncates it to Geomet...llipse(3pm) but we're not doing that, we're giving her her full name. main character energy only. π
π¦ DESCRIPTION π¦
Geometry::Primitive::Ellipse represents an elliptical conic section. that's it, that's the vibe. an ellipse. a little squished circle situation. gorgeous. β¨
πΈ SYNOPSIS πΈ
okay so here's how you actually use her:
use Geometry::Primitive::Ellipse;
my $ellipse = Geometry::Primitive::Ellipse->new(
width => 15,
height => 10
);
print $ellipse->area;
look at her go. width => 15, height => 10, and then she just tells you her area. slay. π
π ATTRIBUTES π
height
Set/Get the height of this ellipse. that's the up-and-down one, bestie. π
origin
Set/Get the origin of this ellipse. where she's anchored. her home base. π
width
Set/Get the width of this ellipse. the side-to-side one. and yes, together with height she is fully shaped. π¦
β¨ METHODS β¨
new
Creates a new Geometry::Primitive::Ellipse. fresh ellipse, no notes. π
area
Returns the area of this ellipse. math girlie is thriving. π₯
point_end
Gets the "end" point for this Ellipse. Same as point_start. so like, they're the same thing, don't come for me, that's just what the docs say. π
point_start
Get the point that "starts" this Ellipse. Returns the a point where the X coordinate is the Ellipse origin X and the origin Y + height / 2.
ngl that's word-for-word how the original says it ("Returns the a point" and all) and we are NOT paraphrasing math. respect the source. π«Ά
scale ($amount)
Returns a new ellipse whose radius is $amount times bigger than this one. glow-up, quantified. π
π AUTHOR π
Cory Watson <gphat@cpan.org>
π COPYRIGHT & LICENSE π
You can redistribute and/or modify this code under the same terms as Perl itself.
and that's the whole page, bestie!! no cap, every option, every default, every word β all present and accounted for. π
this lil masterpiece is perl v5.36.0, dated 2022-12-12, and it lives at Geomet...llipse(3pm) in the User Contributed Perl Documentation section. mwah. bye pookie π«Άβ¨πΈ
π¦ where this page comes from
- debian bookworm: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms