News for hackers. Stuff that matters.
Re:Apple's Unique Device Curvature by nequo on Saturday December 24, 2022 @11:56AM (#34118613)
The curvature combs are confusing to me.

Is this equivalent to saying that Apple’s rounded corners have a continuous second derivative while naïve rounded corners only have a continuous first derivative but a discontinuous second derivative? Or am I misunderstanding this?

Re:Apple's Unique Device Curvature by legosexmagic on Saturday December 24, 2022 @12:39PM (#34119043)
thats pretty much it yes. the reason they dont just say 2nd derivative is that the derivative isnt a geometry property. you can have two curves with the same shape but different derivatives.

curvature only depends on the shape of the object.

Re:Apple's Unique Device Curvature by phkahler on Saturday December 24, 2022 @01:16PM (#34119470)
It's called C2 continuity.
Re:Apple's Unique Device Curvature by kelsolaar on Saturday December 24, 2022 @01:33PM (#34119646)
The Continuity of Splines: https://youtu.be/jvPPXbo87ds
Re:Apple's Unique Device Curvature by harywilke on Saturday December 24, 2022 @03:30PM (#34120795)
I came here to post exactly this excellent video on splines by Freya Holmér. This discontinuity of reflections effect is directly mentioned at 29 minutes in chapter 4 on geometric continuity.
Re:Apple's Unique Device Curvature by milosmns on Saturday December 24, 2022 @06:26PM (#34122285)
Thank you.
Re:Apple's Unique Device Curvature by yshklarov on Saturday December 24, 2022 @01:20PM (#34119518)
Do you know whether it's usual nowadays in industrial design to make curves that are actually smooth (I mean, derivatives of all orders are continuous) and not just C2? Or is it technically challenging for some reason, or not useful?
Re:Apple's Unique Device Curvature by jsjohnst on Saturday December 24, 2022 @01:51PM (#34119839)
Actually, you only need G2 continuity for the reflection to be continuous (yes, C2 is also G2 for regular curves).
Re:Apple's Unique Device Curvature by amelius on Saturday December 24, 2022 @12:03PM (#34118679)
Isn't this sort of thing common in the automotive industry?
Re:Apple's Unique Device Curvature by nine_k on Saturday December 24, 2022 @03:48PM (#34120943)
It's very common on railways.

You don't want a train to suddenly experience a sideways force as it enters a curve. So the 2nd derivative of the position, acceleration, should not instantly go from 0 to a constant, instead, it should grow smoothly, like pictured in TFA. So you want a non-zero 3rd derivative, and possibly even a non-zero 4th derivative.

Cubic splines of course give you a nice 3rd derivative. In fact, you can't make a perfect circle using cubic splines, because of that. Draw your device's shape in Illustrator or Inkscape, and you likely make it Apple-like :)

Re:Apple's Unique Device Curvature by pmahoney on Saturday December 24, 2022 @04:17PM (#34121160)
See also "Why roller coaster loops aren’t circular anymore"

https://news.ycombinator.com/item?id=32005421

Re:Apple's Unique Device Curvature by yshklarov on Saturday December 24, 2022 @01:16PM (#34119469)
That is roughly correct. For a curve with smooth parametrization f(t) = (x(t), y(t)), with f'(t) ≠ 0 for all t, the curvature at the point f(t) is defined to be κ := |(f'(t)/|f'(t)|)'| -- the magnitude of the first derivative of the unit tangent vector. This is a nonnegative quantity, and is well defined, that is, independent of the specific parametrization of the curve (as legosexmagic said, you need to do something like this to get a quantity independent of the parametrization, but it is essentially a "normalized" second derivative).

The curvature comb consists (it seems to me) of a normal line segment at each point, whose length is directly proportional to the curvature there.

Re:Apple's Unique Device Curvature by yshklarov on Saturday December 24, 2022 @03:33PM (#34120819)
Oops, my mistake: that is not the definition of curvature! The outer derivative must be taken with respect to arclength, rather than with respect to t.