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 Class Reference
#include <Face.h>
Public Member Functions | |
| Face () | |
| The constructor of the Face class which instantiates the face object. | |
| float | getVertexValue (int vertex, int axis) |
| An accessor method which returns the value depending on the index of the vertex and the axis required. | |
| bool | getVisible () |
| An accessor method which returns whether the face is visible or not. | |
| void | setVisible (bool v) |
| A mutator method which sets whether the face is visible or not. | |
| void | setVerticies (float(&PointArray)[4][3]) |
| A mutator method which sets the verticies of the face. | |
| float | getAvgZ () |
| An accessor method which returns the average z axis value of the faces verticies. | |
Detailed Description
Face class.
A class used to instantiate a Face object, each cube will store 6 of these and will all be passed to the renderer to display the cube. Each Face object will be sorted in terms of its average z axis position upon which the renderer draws the faces from back to front to create depth.
- Date:
- April, 2019
Definition at line 9 of file Face.h.
Constructor & Destructor Documentation
| Face | ( | ) |
Member Function Documentation
| float getAvgZ | ( | ) |
| float getVertexValue | ( | int | vertex, |
| int | axis | ||
| ) |
An accessor method which returns the value depending on the index of the vertex and the axis required.
- Parameters:
-
The index of which vertex is required The axis of the 3 dimensional coordinate required
- Returns:
- The float value of the required vertex in a specific axis
| bool getVisible | ( | ) |
| void setVerticies | ( | float(&) | PointArray[4][3] ) |
Generated on Fri Jul 15 2022 03:54:57 by
1.7.2