source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/docs/api/core/Clock.html@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 1.8 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <script src="../../list.js"></script>
6 <script src="../../page.js"></script>
7 <link type="text/css" rel="stylesheet" href="../../page.css" />
8 </head>
9 <body>
10 <h1>[name]</h1>
11
12 <div class="desc">Object for keeping track of time.</div>
13
14
15 <h2>Constructor</h2>
16
17
18 <h3>[name]( [page:Boolean autoStart] )</h3>
19 <div>
20 autoStart — Automatically start the clock.
21 </div>
22
23 <h2>Properties</h2>
24
25 <h3>.[page:Boolean autoStart]</h3>
26 <div>
27 If set, starts the clock automatically when the first update is called.
28 </div>
29
30 <h3>.[page:Float startTime]</h3>
31 <div>
32 When the clock is running, It holds the start time of the clock. <br />
33 This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
34 </div>
35
36
37 <h3>.[page:Float oldTime]</h3>
38 <div>
39 When the clock is running, It holds the previous time from a update.<br />
40 This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
41 </div>
42
43 <h3>.[page:Float elapsedTime]</h3>
44 <div>
45 When the clock is running, It holds the time elapsed between the start of the clock to the previous update.<br />
46 This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
47 </div>
48
49 <h3>.[page:Boolean running]</h3>
50 <div>
51 This property keeps track whether the clock is running or not.
52 </div>
53
54
55 <h2>Methods</h2>
56
57 <h3>.start()</h3>
58 <div>
59 Starts clock.
60 </div>
61
62 <h3>.stop()</h3>
63 <div>
64 Stops clock.
65 </div>
66
67 <h3>.getElapsedTime() [page:Float]</h3>
68 <div>
69 Get the seconds passed since the clock started.
70 </div>
71
72 <h3>.getDelta() [page:Float]</h3>
73 <div>
74 Get the seconds passed since the last call to this method.
75 </div>
76
77
78 <h2>Source</h2>
79
80 [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
81 </body>
82</html>
Note: See TracBrowser for help on using the repository browser.