the relationship between C (parametric) and G (geometric) continuity between curves
• C0/G0 are equivalent
• G2 continuity is also G1 and G0 continuous
• C2 continuity is also G2, C1, G1 and G0 continuous
it's a little difficult to wrap your head around, but this is how they relate to the derivatives (top)
notably, G-continuity has no restriction on parametric continuity.
G2 *can* be C1 too, but it only has to be the lesser strict G1
G3 *can* be C2 & C1, but has to be G2 & G1
a general definition of Gn continuity:
the join between two curves A(t) and B(t), is Gn continuous, if a function g(t) exists, so that A(t) and B(g(t)) is Cn continuous
for G1 continuity, the first derivative has matching directions, but not necessarily magnitude
for example, here's a G1 continuous bézier spline. Note how the first derivative is discontinuous (in other words, not C1), but the directions/tangents match
this relationship, however, doesn't generalize to higher G-continuities - it's not as simple as "matching directions but not magnitude" as it is for G1 in particular
this is a G3 continuous join, with the first two derivatives on the right
what's a good way to store date+time in an sql database?
assuming I want to support pretty precise events (down to seconds in precision) across a huge timespan (birth of our universe to the heat death of our universe)
I'm toying with the idea of a timeline tool where you can create timelines of, well, events, both historical and fictional
it would be cool if it would support huge astronomical timespans as well as like, detailed breakdown of a single hour in history
so outside of recorded history + however long we will likely live + the range of fictional universes, I don't need very high precision at all
for the past three years, I've been speaking english every single day, only switching to my native swedish when talking to relatives on the phone, which is probably 0.5% of my uttered words
somehow, I now feel like a stranger to my own native language
I recently met a new friend - we'd never spoken in person before!
once we met we figured we might as well just speak swedish since we both speak it fluently
but, my brain kept wanting to pull in english words, and started structuring sentences as if I was speaking english
the result is a haphazard mostly-swedish but lots of english words and unfinished sentences
like it works, but something feels really off, like I'm emulating someone else, trying to fit a mold that's just ever so slightly off at all times
I'm a Lv1 webdev right now (vanilla html/js/php), but I'm looking to modernize just one step further to Lv2 without getting overwhelmed with the package/API/systems hell of the Lv8 lategame
one of the biggest things I'm missing is some form of html templating
I used to do it w. php but it seems like such a hack, and doing it with js also seems like a hack. you have to like, name containers and use .innerHTML
I feel like there has to be a better way?
I don't even need any advanced dynamic content, I just need some better workflow to share data
the most advanced thing I have is like, embedding interactive p5js stuff, but that's already solved
a single 3D vector, where
• its direction v̂ is the axis of rotation
• its magnitude ||v|| is the angle to rotate by
this can represent any 3D rotation, but you'll most commonly see it represent angular velocity, where the magnitude is the angular speed
this is because unlike quaternions, axis-angle can go beyond a full turn, just like a number representing a single angle can
when representing angular velocity this way, you can also easily add angular velocities together through simple vector addition, decompose it, and project it!
I feel like so many movies would immediately improve if you removed 80% of dialogue and made it 4 times as long
make me *feel* the character's motivation, and see their struggles and motivations
I'm so allergic to having it told to me over and over through dialogue when it's already clear contextually
and like, it's so hard to have proper pacing and tell a believable story with actual character development, without too much on the nose exposition, in the space of an hour or two