Geomet...:Bezier(3pm)
π 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> π
π COPYRIGHT & LICENSE π
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
- 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