Geomet...:Circle(3pm)

πŸ“¦
version 0.24 Β· 2 versions
  • 0.24 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.24 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 🫢


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