Is this a normal pattern? I am new to react and have been feeling my way through so far (with claude)
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<BusyProvider>
<ErrorBoundary>
<ToastProvider>
<TransitionProvider>
<OfflineProvider>
<AuthProvider>
<LayoutWrapper>{children}</LayoutWrapper>
</AuthProvider>
</OfflineProvider>
</TransitionProvider>
<ToastContainer />
</ToastProvider>
</ErrorBoundary>
</BusyProvider>
);
robotomatic
u/robotomatic
I am working with JavaScript canvas, and trying to draw PART of a Quadradic curve.
My arc is defined by the points A, B, and C. I have a point on the curve, D
I want to make an arc between points A, X, and D that maintains the same curvature (I basically want to split the arc in half)
How do I figure out point X?
I added the green vectors by eye...is there a way to derive the new control point with the information I have available?
I am working with JavaScript canvas, and trying to draw PART of a Quadradic curve.
My arc is defined by the points A, B, and C. I have an intersection point D
I want to make an arc between points A, X, and D that maintains the same curvature (I basically want to split the arc in half)
How do I figure out point X?
I added the green vectors by eye...is there a way to derive the new control point with the information I have available?
Re-upload...I didn't explain the problem properly the first time...
I am working with JavaScript canvas, and trying to draw PART of a Quadradic curve.
My arc is defined by the points A, B, and C. I have an intersection point D
I want to make an arc between points A, X, and D that maintains the same curvature (I basically want to split the arc in half)
How do I figure out point X?
I added the green vectors by eye...is there a way to derive the
I hope this is the right sub. My question is programming related, but the answer is all Maths...
I am doing some Javascript Canvas stuff and I am kinda lost when it comes to Quadratic curves.
I have a start point (x, y), an end point, and a control point to define the curve. I also have a random point somewhere along the curve. I want to draw the curve from the start point, through the control point, but end at my arbitrary point instead of the original end point.
Everything I try gives me unwanted curls at the end, I assume because my control point has to change to match the new end point. Can anyone shed some insight?



