Vector4 subclass instead of typedef
This commit is contained in:
parent
2b9fec5d82
commit
da127ccde3
2 changed files with 60 additions and 1 deletions
|
@ -19,7 +19,16 @@ struct Vector
|
|||
{ };
|
||||
|
||||
|
||||
typedef Vector<4> Vector4;
|
||||
struct Vector4
|
||||
: public Vector<4>
|
||||
{
|
||||
Vector4();
|
||||
Vector4(Double x, Double y, Double z);
|
||||
|
||||
Double& X();
|
||||
Double& Y();
|
||||
Double& Z();
|
||||
};
|
||||
|
||||
} /* namespace basics */
|
||||
} /* namespace charles */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue