code logs -> 2022 -> Thu, 17 Feb 2022< code.20220216.log - code.20220218.log >
--- Log opened Thu Feb 17 00:00:29 2022
00:54 gnolam_ [lenin@Nightstar-j9ajs0.priv.bahnhof.se] has joined #code
00:57 gnolam [lenin@Nightstar-j9ajs0.priv.bahnhof.se] has quit [Ping timeout: 121 seconds]
01:11 gizmore|2 [kvirc@Nightstar-86q1d0.dip0.t-ipconnect.de] has joined #code
01:13 gizmore [kvirc@Nightstar-018oae.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds]
01:58 macdjord [macdjord@Nightstar-re5.7if.45.45.IP] has quit [[NS] Quit: Deep inside, every housecat believes themself to be just a temporarily embarrassed tiger.]
02:14 macdjord [macdjord@Nightstar-re5.7if.45.45.IP] has joined #code
02:15 mode/#code [+o macdjord] by ChanServ
03:17 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
03:36 Degi_ [Degi@Nightstar-mc0lsd.pool.telefonica.de] has joined #code
03:38 Degi [Degi@Nightstar-3u5o3e.pool.telefonica.de] has quit [Ping timeout: 121 seconds]
03:38 Degi_ is now known as Degi
03:38
< Pinkhair>
Anyone know a particularly good way to snap a normalized vector(or a vector in general, of course) to the closest cardinal direction?
03:47
<@macdjord>
Pinkhair: I think this would work, given a vector (x, y): (abs(x) > abs(y)) ? (x/abs(x), 0) : (0, y/abs(y)
03:55 Pinkhair [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Connection closed]
04:02 jessika [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [The TLS connection was non-properly terminated.]
04:38 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
04:39 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has joined #code
04:39 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
04:42
< Pink>
That does seem about right; I had made things harder for myself trying to do it in 3d when I really could just zero out the third dimension.
04:47 Pinkhair [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
04:48
<@macdjord>
Pink: I think the same algorithm would work in 3D as well: pick the axis with the largest magnitude, reduce it to 1 while preserving the sign, and zero the others.
04:49 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Ping timeout: 121 seconds]
04:59
<~Vorntastic>
What are we up to
05:05
<@macdjord>
[22:38:20] <Pinkhair> Anyone know a particularly good way to snap a normalized vector(or a vector in general, of course) to the closest cardinal direction?
05:05
<@macdjord>
[22:47:36] <macdjord> Pinkhair: I think this would work, given a vector (x, y): (abs(x) > abs(y)) ? (x/abs(x), 0) : (0, y/abs(y)
05:06
<~Vorntastic>
Oh. Uh... `vec3 a = abs(v); vec3 snap = trunc(v/min(a.x,min(a.y,a.z)));
05:06
< Pinkhair>
Yeah, probably, but in this case I know that y will always be zero so I can just use the xz plane
05:07
<~Vorntastic>
Or similar for different dim counts
05:08
<~Vorntastic>
Sorry, max, not min
06:14 Kindamoody[zZz] is now known as Kindamoody|afk
07:09 gnolam_ is now known as gnolam
07:09 mode/#code [+o gnolam] by ChanServ
07:09 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
09:10 catalyst is now known as jessika
14:23 Pinkhair [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Ping timeout: 121 seconds]
14:27 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
14:40 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Connection closed]
14:40 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
14:59 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
14:59 jessika [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed]
15:01 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer]
15:01 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
15:09 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:09 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:59 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:05 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
17:05 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Ping timeout: 121 seconds]
18:54 catalyst_ [catalyst@Nightstar-imjk3i.dab.02.net] has joined #code
18:56 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
19:08 catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code
19:09 catalyst_ [catalyst@Nightstar-imjk3i.dab.02.net] has quit [Ping timeout: 121 seconds]
20:08 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
20:28 abudhabi__ [abudhabi@Nightstar-7bsqea.adsl.tpnet.pl] has joined #code
20:31 abudhabi_ [abudhabi@Nightstar-fsoaml.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
22:13 catalyst_ [catalyst@Nightstar-imjk3i.dab.02.net] has joined #code
22:16 catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [Ping timeout: 121 seconds]
22:21 Kindamoody|afk is now known as Kindamoody
22:23 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
22:26 catalyst_ [catalyst@Nightstar-imjk3i.dab.02.net] has quit [Ping timeout: 121 seconds]
22:46 Pinkhair [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
22:49 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Ping timeout: 121 seconds]
22:52 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
22:52 Pinkhair [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Ping timeout: 121 seconds]
22:59 Pinkhair [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
23:00 PinkAFK [Pink@Nightstar-oetkb4.ph.cox.net] has joined #code
23:01 Pink [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Ping timeout: 121 seconds]
23:03 Pinkhair [Pink@Nightstar-oetkb4.ph.cox.net] has quit [Ping timeout: 121 seconds]
23:23 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
--- Log closed Fri Feb 18 00:00:31 2022
code logs -> 2022 -> Thu, 17 Feb 2022< code.20220216.log - code.20220218.log >

[ Latest log file ]