Geomet...llipse(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::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>


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