Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Face/Face.cpp
- Revision:
- 17:3c9672c6e532
- Parent:
- 13:f4de03202477
- Child:
- 22:236319885874
--- a/Face/Face.cpp Sun Mar 31 18:05:01 2019 +0000
+++ b/Face/Face.cpp Sun Mar 31 18:10:18 2019 +0000
@@ -16,8 +16,8 @@
visible = v;
}
-void Face::setVerticies(double (&PointArray)[4][3]){
- double z = 0;
+void Face::setVerticies(float (&PointArray)[4][3]){
+ float z = 0;
for(int vertex = 0; vertex < 4; vertex++){
for(int axis = 0; axis < 3; axis++){
verticies[vertex][axis] = PointArray[vertex][axis];
@@ -27,10 +27,10 @@
avgZ = z/4;
}
-double Face::getVertexValue(int vertex, int axis){
+float Face::getVertexValue(int vertex, int axis){
return verticies[vertex][axis];
}
-double Face::getAvgZ(){
+float Face::getAvgZ(){
return avgZ;
}
\ No newline at end of file