Skip to content
Snippets Groups Projects
Commit 77da2104 authored by Shon Ferguson's avatar Shon Ferguson
Browse files

Made Get() functions for Matrix33, Matrix44, and Float3 return a value instead of a reference.

parent cf6c70c8
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,10 @@ struct Float3 {
float operator[](int n) const {
return data[n];
}
float & Get(int n) {
void Set(int n, float value) {
data[n] = value;
}
float Get(int n) {
return data[n];
}
};
......@@ -184,7 +187,7 @@ struct Matrix33 {
void Set( int row, int col, float value ) {
rows[row][col] = value;
}
float & Get( int row, int col ) {
float Get( int row, int col ) {
return rows[row][col];
}
void AsFloatArr( float out[3][3] ) {
......@@ -226,7 +229,7 @@ struct Matrix44 {
void Set(int row, int col, float value) {
rows[row][col] = value;
}
float & Get(int row, int col) {
float Get(int row, int col) {
return rows[row][col];
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment