APCG 180 Lecture Notes - Lecture 1: Computer-Aided Design

32 views1 pages

Document Summary

// if the square of the distance is less than or equal to the square of the radius then true, return (((delta_x * delta_x) + (delta_y * delta_y)) <= (radius * radius)) else false. //calculates the score based on the dart location, center of target, size of the overall target and how_many rings in the target function scoredart(dart_x, dart_y, center_x, center_y, size, how_many) target, the size and how many rings. // calculates a dart x & y, draws the dart and add to the score based on the center of the. // draws the dart in the player"s color.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents