Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

length of a 2D quadratic bezier curve?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 VladimirM   Members   

130
Like
0Likes
Like

Posted 22 August 2012 - 02:05 PM

Is there a formula? Or must i approximate it by dividing the curve into line segments and summing them up?

#2 Bacterius   Members   

13164
Like
1Likes
Like

Posted 22 August 2012 - 02:59 PM

You could analytically divide the curve into n segments and take the limit of the sum as n goes to infinity, this should give you the formula. Or use the integral form which would give the same result (by definition). Did you try this (google cache since the site seems to be down/dead)?

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”


#3 VladimirM   Members   

130
Like
0Likes
Like

Posted 22 August 2012 - 03:53 PM

Wow, i tried it and it works, thanks, but i have a question,

Posted Image

what is the D in the b = 2P1 - 2DP0? And why is there no line above P0? I need to understand this so that i could simplify this equation, because i have a very simple case of a bezier curve.

#4 VladimirM   Members   

130
Like
0Likes
Like

Posted 22 August 2012 - 03:57 PM

i figured it out from the code.. no need to explain, thanks again.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.