Geomet...:Bezier(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::Bezier β€” the cubic BΓ©zier curve era πŸ’–

okay so bestie, welcome to the Geomet...:Bezier(3pm) page, straight out of the User Contributed Perl Documentation collection. yes, the title is abbreviated, no, I don't make the rules, I just slay within them. ✨


🌸 NAME 🌸

Geometry::Primitive::Bezier β€” Cubic BΓ©zier Curve πŸ¦‹


✨ DESCRIPTION ✨

So. Geometry::Primitive::Bezier represents a cubic BΓ©zier curve. That's it, that's the whole vibe. Four points, one gorgeous swoopy curve, main character energy. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

the way you literally just do this:

use Geometry::Primitive::Bezier;

my $line = Geometry::Primitive::Bezier->new(
    start => $point1,
    control1 => $point2,
    control2 => $point3,
    end => $point4
);

no cap, that's the whole thing. four points in, curve out. πŸ’…


🫢 ATTRIBUTES 🫢

πŸ’œ control1

Set/Get the first control point of the curve. it's giving "the first little handle that shapes the vibe". πŸŽ€

πŸ’œ control2

Set/Get the second control point of the curve. yes bestie, cubic means two of them. πŸ”₯

πŸ’œ end

Set/Get the end point of the curve. where the whole thing lands. ⭐

πŸ’œ start

Set/Get the start point of the line. where the whole thing begins. 🌸


🌈 METHODS 🌈

πŸ¦‹ new

Creates a new Geometry::Primitive::Bezier. fresh curve, brand new, iconic. ✨

πŸ¦‹ grow

Does nothing, as I'm not sure how. Patches or hints welcome. 😭

fr fr this one is a little empty shell. if you know how to make a Bézier grow, the author is literally asking. be the hero. 🫢

πŸ¦‹ point_end

Get the end point. Provided for the Shape role. πŸ’–

πŸ¦‹ point_start

Get the start point. Provided for the Shape role. πŸ’–

πŸ¦‹ scale

Scales this curve by the amount provided. Multiplies each coordinate by the amount. so if you hand it 2, everything doubles. math but make it fashion. πŸ’…

πŸ¦‹ to_string

Guess! πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Cory Watson <gphat@cpan.org> πŸ’Œ


You can redistribute and/or modify this code under the same terms as Perl itself. periodt. ⭐


and that's the page, bestie! this one's from perl v5.36.0, dated 2022-12-12 β€” Geomet...:Bezier(3pm) forever and always. mwah πŸ’‹

πŸ“¦ where this page comes from