Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.crypt > #50049

Re: Comic relief... The trisector...

From "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups sci.crypt
Subject Re: Comic relief... The trisector...
Date 2021-09-19 13:32 -0700
Organization Aioe.org NNTP Server
Message-ID <si86ph$1gnk$1@gioia.aioe.org> (permalink)
References <si3446$nq2$1@gioia.aioe.org> <si4t7h$16aj$1@gioia.aioe.org>

Show all headers | View raw


On 9/18/2021 7:31 AM, Max wrote:
> On 18.09.21 00:16, Chris M. Thomasson wrote:
>> The trisector master recently received a massive head wound... It 
>> thinks this crap is a solution. I coded this up to make you laugh, 
>> joke around. Or, is it so stupid, it makes you accidentally spill 
>> coffee on your keyboard? YIKES. Beware.
>>
>> The, mess, lol:
>> _____________________________
>> // LOL! Just a joke, jest. :^D
>> namespace ct_trisect_LOL
>> {
>>      void do_it_lol(
>>          ct::plot::cairo::plot_2d& plot,
>>          glm::vec2 p0,
>>          float angle
>>      ) {
>>          glm::vec2 p0_circle = {
>>              glm::cos(0), glm::sin(0)
>>          };
>>
>>          glm::vec2 p1_circle = {
>>              glm::cos(angle), glm::sin(angle)
>>          };
>>
>>
>>          glm::vec2 dif = p1_circle - p0_circle;
>>
>>          glm::vec2 dif_p0 = p0_circle + dif / 3.f;
>>          glm::vec2 dif_p1 = p1_circle - dif / 3.f;
>>
>>          plot.line(p0, p0_circle, CT_RGBF(1, 0, 0), 5.f);
>>          plot.line(p0, p1_circle, CT_RGBF(0, 1, 0), 5.f);
>>
>>
>>          plot.line(p0_circle, p1_circle, CT_RGBF(0, 0, 1), 5.f);
>>
>>          plot.circle(dif_p0, .02, CT_RGBF(1, 1, 0));
>>          plot.circle(dif_p1, .02, CT_RGBF(0, 1, 1));
>>
>>
>>          plot.line(p0, dif_p0, CT_RGBF(1, 1, 1), 5.f);
>>          plot.line(p0, dif_p1, CT_RGBF(1, 1, 1), 5.f);
>>      }
>>
>>
>>
>>      void manifest(
>>          ct::plot::cairo::plot_2d& plot
>>      ) {
>>          std::cout << "ct_trisect_LOL::manifest()\n";
>>
>>          do_it_lol(plot, { 0, 0 }, CT_PI / 4.f);
>>      }
>> }
>> _____________________________
>>
>> Here is a rendering:
>>
>> https://i.ibb.co/nn83q6g/ct-tri-shit-lol.png
>>
>> I am wondering if this is worth a laugh at all...
>>
>> YIKES! ;^)
> 
> 
> :-)
> 
> Good job! You found a pretty approximation there. ;-)
[...]

:^D

Its radically simple and seems to approximate kind of "decent'ish" for 
angles [0...pi/2]. Here is one for .5 radians:

https://i.ibb.co/JxM8M0k/ct-tri-shit-lol-p1.png

It seems to do a much better job for small angles... ;^)

Shit hits the fan for larger angles. Here is 2.5 radians:

https://i.ibb.co/xs6gpjK/ct-tri-shit-lol-p2.png

Oh wow! Shit happens. LOL! ;^)


> P.S.: Pi = 3    ;-)
> 

;^)

Back to sci.crypt | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Comic relief... The trisector... "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-09-17 15:16 -0700
  Re: Comic relief... The trisector... Max <maxturv26@gmx.net> - 2021-09-18 16:31 +0200
    Re: Comic relief... The trisector... "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-09-19 13:32 -0700
      Re: Comic relief... The trisector... Max <maxturv26@gmx.net> - 2021-09-19 22:42 +0200
        Re: Comic relief... The trisector... "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-09-19 20:07 -0700
          Re: Comic relief... The trisector... "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-09-19 20:10 -0700
      Re: Comic relief... The trisector... Phil Carmody <pc+usenet@asdf.org> - 2021-09-20 16:58 +0300
        Re: Comic relief... The trisector... "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-09-22 12:31 -0700
  Re: Comic relief... The trisector... "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-09-19 20:13 -0700
  Re: Comic relief... The trisector... "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-09-19 23:56 -0700
    Re: Comic relief... The trisector... "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-09-22 21:53 -0700

csiph-web