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
Face/Face.cpp@1:044238f7bdda, 2019-02-22 (annotated)
- Committer:
- el17cd
- Date:
- Fri Feb 22 12:57:19 2019 +0000
- Revision:
- 1:044238f7bdda
- Child:
- 4:759a5c34e239
Face class implemented, creating rasturizator class
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17cd | 1:044238f7bdda | 1 | #include "mbed.h" |
| el17cd | 1:044238f7bdda | 2 | #include "Face.h" |
| el17cd | 1:044238f7bdda | 3 | |
| el17cd | 1:044238f7bdda | 4 | Face::Face(float (&PointArray)[4][3]){ |
| el17cd | 1:044238f7bdda | 5 | for(int vertex = 0; vertex < 4; vertex++){ |
| el17cd | 1:044238f7bdda | 6 | for(int axis = 0; axis < 3; axis++){ |
| el17cd | 1:044238f7bdda | 7 | verticies[vertex][axis] = PointArray[vertex][axis]; |
| el17cd | 1:044238f7bdda | 8 | } |
| el17cd | 1:044238f7bdda | 9 | } |
| el17cd | 1:044238f7bdda | 10 | } |
| el17cd | 1:044238f7bdda | 11 | float Face::GetVertexValue(int vertex, int axis){ |
| el17cd | 1:044238f7bdda | 12 | return verticies[vertex][axis]; |
| el17cd | 1:044238f7bdda | 13 | } |