### Circles and Spheres

It's very important to be familiar with the equation of a circle. You might want to draw a circle on the screen, which means graphing the equation. You might want to trace the motion of an object on a circular path. You might even want to use a bounding circle on your object for collision detection. In any of these cases, you need to manipulate the equation of a circle. Remember that in a flat plane (such as the screen), a circle is the set of all points at a given distance, called the radius, from a given fixed point, the center. Therefore, just those two elements, the center and the radius, can determine an equation for the circle. Which equation gives you the distance between the center and a point on the circle? That's ...

Get Beginning Math and Physics for Game Programmers now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9210793,"math_prob":0.97084767,"size":967,"snap":"2022-05-2022-21","text_gpt3_token_len":206,"char_repetition_ratio":0.13707165,"word_repetition_ratio":0.012121212,"special_character_ratio":0.20889348,"punctuation_ratio":0.12820514,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98285115,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-27T07:28:26Z\",\"WARC-Record-ID\":\"<urn:uuid:1c2b3d8a-be2c-41f9-bb6c-2840f450b610>\",\"Content-Length\":\"33180\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:36766134-11b0-4bf2-80a3-c0486d4939d6>\",\"WARC-Concurrent-To\":\"<urn:uuid:366b5387-726e-44b0-9255-45f714e49900>\",\"WARC-IP-Address\":\"23.1.54.159\",\"WARC-Target-URI\":\"https://www.oreilly.com/library/view/beginning-math-and/0735713901/0735713901_ch02lev1sec3.html\",\"WARC-Payload-Digest\":\"sha1:M5BPJUD3ILVC465FTLYENR3X5I4CCLJA\",\"WARC-Block-Digest\":\"sha1:RKZZUH76NMAB4BDQ4PNETW53EC4ODH3B\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662636717.74_warc_CC-MAIN-20220527050925-20220527080925-00036.warc.gz\"}"}