Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 450 Bytes

File metadata and controls

25 lines (18 loc) · 450 Bytes

Name: Displacement

Examples:

void draw(){ float d = Displacement(8, 2, -2); rect(d, height/2, 50, 50); }

Description:

Calculates the displacement of a particle given its initial speed, acceleration, and time interval

Syntax:

float Displacement(float vi, float t, float a)

##Parameters: vi = initial speed of particle t = time interval over which particle moves a = acceleration of particle

##Returns: float d

##Other notes: None