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:
- 4:759a5c34e239
- Parent:
- 1:044238f7bdda
- Child:
- 7:15543cb10a14
--- a/Face/Face.cpp Fri Feb 22 14:01:20 2019 +0000
+++ b/Face/Face.cpp Fri Feb 22 19:05:28 2019 +0000
@@ -1,13 +1,25 @@
#include "mbed.h"
+#ifndef FACE_H
+#define FACE_H
#include "Face.h"
+#endif
-Face::Face(float (&PointArray)[4][3]){
+Face::Face(){//float (&PointArray)[4][3]){
+ /*
+ for(int vertex = 0; vertex < 4; vertex++){
+ for(int axis = 0; axis < 3; axis++){
+ verticies[vertex][axis] = PointArray[vertex][axis];
+ }
+ }*/
+}
+void Face::setVerticies(float (&PointArray)[4][3]){
for(int vertex = 0; vertex < 4; vertex++){
for(int axis = 0; axis < 3; axis++){
verticies[vertex][axis] = PointArray[vertex][axis];
}
}
}
-float Face::GetVertexValue(int vertex, int axis){
+
+float Face::getVertexValue(int vertex, int axis){
return verticies[vertex][axis];
}
\ No newline at end of file