20. Mathematics I

25 %
75 %
Information about 20. Mathematics I
Education

Published on March 15, 2014

Author: JosephHenryMurphy

Source: slideshare.net

From last time… • Added a PONG countdown and sound effects! • Minim: AudioPlayer vs. AudioSample! • Briefly discussed external libraries & debugging! • Homework 3 was graded and returned

CAP Mathematics I

% Modulo Operator • Use modulo to make “counter” variables! • Similar to division but returns the remainder! • The remainder never be greater than the divisor 0 % 3 0 R0 0 1 % 3 0 R1 1 2 % 3 0 R2 2 3 % 3 1 R0 0 4 % 3 1 R1 1

random() Numbers • random(high); OR random(low,high);! • Weighted randomness: we’ve seen this many times before!

Perlin noise() • noise(x); • noise(x,y); • noise(x,y,z); • We have to feed it a “time” value! • Always returns a float between 0 and 1

Demo! Fireflies

Radians & Degrees • Radians = 2 π ( Degrees / 360 )! • float myRadians = radians(360); // 6.2831… • float myDegrees = degrees(TWO_PI); // 360.0 • QUARTER_PI HALF_PI PI TWO_PI TAU • sin(); cos(); tan();

Demo! Drawing on Arcs

For next time… • Iteration 2: we present in 1 week!! • Reading: Shiffman, p. 214–225 (Mathematics II)

Add a comment

Related presentations

Related pages

MATH 20 Home § Mathematics 20 (Fall 2010-2011)

Mathematics 20: Algebra and Multivariable Mathematics for Social Sciences: Harvard College/GSAS: 125396: Fall 2010-2011: Rachel Louise Epstein: Location ...
Read more

archive - Mathematics

20 T 21 U 22 V 23 W 24 X 25 Y 26 Z.col-md-8.col-md-4. Toggle navigation. Sections; About; Contact; asdas. 1. 0. Tim. Last active 10 hours ago ? >> 4h ago ...
Read more

Mathematics 20-2 - Alberta Online Education

Mathematics 20-2 Mathematics 20-2 is ideal for students planning on attending university (depending on the program) college or trade school. Mathematics 20 ...
Read more

Mathematics - Wikipedia, the free encyclopedia

The word mathematics comes from the Greek μάθημα (máthēma), ... ^ Hilbert, D. (1919–20), Natur und Mathematisches Erkennen: Vorlesungen, ...
Read more

Mathematics - Quora

Here are a few books : What Is Mathematics? An Elementary Approach to Ideas and Methods: Richard Courant, Herbert Robbins, Ian Stewart; This book has ...
Read more

Foundations of Mathematics 20 - Blackboard Learn

Outcome: FM20.2. Demonstrate understanding of inductive and deductive reasoning including: analyzing conjectures; analyzing spatial puzzles and games
Read more

Mathematics Courses - University of California San Diego ...

Mathematics [ undergraduate program | graduate ... Credit not offered for both Math 15A and CSE 20. Equivalent to CSE 20. Prerequisites: ...
Read more

Blackboard Learn

Foundations of Mathematics 20; Foundations of Mathematics 30; ... W & A Math 20. Aim & Goals. Outcomes & Indicators. Teaching an Effective Learning Program.
Read more

Kindergarten Mathematics Module 4, Topic D, Lesson 20 ...

Resources may contain links to sites external to the EngageNY.org website. These sites may not be within the jurisdiction of NYSED and in such cases NYSED ...
Read more

MOS DEF LYRICS - Mathematics

Lyrics to "Mathematics" song by MOS DEF: Booka-booka-booka-booka-booka-booka Ha hah You know the deal It's just me yo Beats by Su-Primo f...
Read more