Geomet...:Circle(3pm)
π Geometry::Primitive::Circle β a whole manual page, but make it cute β¨
okay bestie, so this is the user-contributed Perl documentation for Geometry::Primitive::Circle, coming at you live from the 3pm section of your friendly neighborhood man pages π«Ά
πΈ NAME πΈ
Geometry::Primitive::Circle β literally just... a circle. that's it. that's the name. π
π¦ DESCRIPTION π¦
So Geometry::Primitive::Circle represents an ellipse with equal width and height. that's the whole thing. it's giving "squished ellipse but make it symmetrical" β¨ periodt.
β¨ SYNOPSIS β¨
here's the vibe check, code and all:
use Geometry::Primitive::Circle;
my $circle = Geometry::Primitive::Circle->new(
radius => 15
);
print $circle->diameter;
yes queen, use the module, build a circle with radius => 15, print the diameter. iconic. π₯
π ATTRIBUTES π
π origin
Set/Get the origin of this circle. where it lives, bestie. π
π radius
Set/Get the radius of this circle. half the width, the whole personality. π
π METHODS π
π new
Creates a new Geometry::Primitive::Circle. brand new baby circle, fresh out the box πΌβ¨
π area
Returns the area of this circle. the math. the number. slay. π
π circumference
Returns the circumference of this circle. the whole way around the edge, bestie π
π diameter
Returns the diameter of this circle. edge to edge, straight through the middle π
π scale ($amount)
Returns a new circle whose radius is $amount times bigger than this one. glow-up mechanic fr fr π₯
π point_end
Set/Get the "end" point of this cicle. Calls point_start.
ngl bestie the original spells it "cicle" here, and I am NOT fixing it, the manpage said what it said π
π point_start
Set/Get the "start" point of this cicle. Returns the point at the circle's origin X coordinate and the origin Y coordinate + radius / 2. yeah, that specific. no cap. π
π AUTHOR π
Cory Watson <gphat@cpan.org> β the icon who made this happen π«Ά
π COPYRIGHT & LICENSE π
You can redistribute and/or modify this code under the same terms as Perl itself. free to share, free to remix, just keep it Perl-flavored π
and that's a wrap, bestie! this lil masterpiece is from perl v5.36.0, dated 2022-12-12, and it's part of the user contributed Perl documentation, section 3pm πΈ thanks for reading the whole thing, ily, go draw some circles π
β¨
π¦ 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