60 |
jpm |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Documentation</title>
|
|
|
4 |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
|
|
|
5 |
<link rel='stylesheet' href='style.css' />
|
|
|
6 |
</head>
|
|
|
7 |
|
|
|
8 |
<body>
|
|
|
9 |
<div align='center'>
|
|
|
10 |
<table cellpadding='0' cellspacing='0' id='contenu' class='round' style='width: 80%; margin-bottom: 20px'>
|
|
|
11 |
<tr>
|
|
|
12 |
<td class='borderhg'> </td>
|
|
|
13 |
<td class='borderh'> </td>
|
|
|
14 |
<td class='cornerhd'></td>
|
|
|
15 |
</tr>
|
|
|
16 |
<tr>
|
|
|
17 |
<td class='borderg'> </td>
|
|
|
18 |
<td><a id="top"></a><h2> Class MathFunction</h2><div class="description">
|
|
|
19 |
<p>
|
|
|
20 |
Cette classe permet de représenter une fonction mathématique f(x) à afficher sur un graphique de type <a href="MathPlot.html">MathPlot</a>.
|
|
|
21 |
</p>
|
|
|
22 |
</div><ul class="links"><li><a href="index.html">Retourner voir la liste de toutes les classes</a></li></ul><h2>Méthodes et propriétés</h2><ul class="properties">
|
|
|
23 |
<li>
|
|
|
24 |
<span class="access">public</span> <a href="Line.html"><span class="type">Line</span></a> <a href="MathFunction.html#property.line"><span class="argument">$line</span></a>
|
|
|
25 |
</li>
|
|
|
26 |
<li>
|
|
|
27 |
<span class="access">public</span> <a href="Mark.html"><span class="type">Mark</span></a> <a href="MathFunction.html#property.mark"><span class="argument">$mark</span></a>
|
|
|
28 |
</li>
|
|
|
29 |
</ul><ul class="methods">
|
|
|
30 |
<li>
|
|
|
31 |
<span class="access">public</span> <a href="MathFunction.html#method.__construct">__construct</a>(<span class="type">string</span> <span class="argument">$f</span>, <span class="type">float</span> <span class="argument">$fromX</span>, <span class="type">float</span> <span class="argument">$toX</span>)
|
|
|
32 |
</li>
|
|
|
33 |
<li>
|
|
|
34 |
<span class="access">public</span> <a href="MathFunction.html#method.setColor">setColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
|
|
|
35 |
</li>
|
|
|
36 |
<li>
|
|
|
37 |
<span class="access">public</span> <a href="Color.html"><span class="type">Color</span></a> <a href="MathFunction.html#method.getColor">getColor</a>()
|
|
|
38 |
</li>
|
|
|
39 |
</ul><h2>Documentation</h2><ul class="doc">
|
|
|
40 |
<li class="property">
|
|
|
41 |
<a id="property.line"></a><span class="access">public</span> <a href="Line.html"><span class="type">Line</span></a> <a href="MathFunction.html#property.line"><span class="argument">$line</span></a><div class="description">
|
|
|
42 |
La ligne qui sera utilisée pour représenter la fonction.
|
|
|
43 |
</div>
|
|
|
44 |
<div class="description-bottom"><a href="MathFunction.html#top">Remonter</a></div>
|
|
|
45 |
</li>
|
|
|
46 |
<li class="property">
|
|
|
47 |
<a id="property.mark"></a><span class="access">public</span> <a href="Mark.html"><span class="type">Mark</span></a> <a href="MathFunction.html#property.mark"><span class="argument">$mark</span></a><div class="description">
|
|
|
48 |
Les marques qui seront affichés sur chaque point calculé.
|
|
|
49 |
</div>
|
|
|
50 |
<div class="description-bottom"><a href="MathFunction.html#top">Remonter</a></div>
|
|
|
51 |
</li>
|
|
|
52 |
<li class="method">
|
|
|
53 |
<a id="method.__construct"></a><span class="access">public</span> <a href="MathFunction.html#method.__construct">__construct</a>(<span class="type">string</span> <span class="argument">$f</span>, <span class="type">float</span> <span class="argument">$fromX</span>, <span class="type">float</span> <span class="argument">$toX</span>)
|
|
|
54 |
<div class="description">
|
|
|
55 |
Créé un objet <a href="MathFunction.html">MathFunction</a> avec la fonction $f.
|
|
|
56 |
$f est une fonction qui prend un paramètre $x en paramètre et qui doit retourner une valeur $y.
|
|
|
57 |
Les valeurs $fromX et $toX représentent les valeurs de X à partir desquelles commencer et terminer le calcul de la courbe représentative de la fonction.
|
|
|
58 |
</div>
|
|
|
59 |
<div class="description-bottom"><a href="MathFunction.html#top">Remonter</a></div>
|
|
|
60 |
</li>
|
|
|
61 |
<li class="method">
|
|
|
62 |
<a id="method.setColor"></a><span class="access">public</span> <a href="MathFunction.html#method.setColor">setColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
|
|
|
63 |
<div class="description">
|
|
|
64 |
Change la couleur de la courbe représentative de la fonction pour $color.
|
|
|
65 |
</div>
|
|
|
66 |
<div class="description-bottom"><a href="MathFunction.html#top">Remonter</a></div>
|
|
|
67 |
</li>
|
|
|
68 |
<li class="method">
|
|
|
69 |
<a id="method.getColor"></a><span class="access">public</span> <a href="Color.html"><span class="type">Color</span></a> <a href="MathFunction.html#method.getColor">getColor</a>()
|
|
|
70 |
<div class="description">
|
|
|
71 |
Retourne la couleur de la courbe représentative de la fonction.
|
|
|
72 |
</div>
|
|
|
73 |
<div class="description-bottom"><a href="MathFunction.html#top">Remonter</a></div>
|
|
|
74 |
</li>
|
|
|
75 |
</ul>
|
|
|
76 |
</td>
|
|
|
77 |
<td class='borderd'> </td>
|
|
|
78 |
</tr>
|
|
|
79 |
<tr>
|
|
|
80 |
<td class='cornerbg'></td>
|
|
|
81 |
<td class='borderb'> </td>
|
|
|
82 |
<td class='cornerbd'></td>
|
|
|
83 |
</tr>
|
|
|
84 |
</table>
|
|
|
85 |
</div>
|
|
|
86 |
</body>
|
|
|
87 |
</html>
|