Vector4 constructor from Matrix<4,1>
This commit is contained in:
parent
43cb182aa7
commit
519eb347d1
2 changed files with 7 additions and 1 deletions
|
@ -33,6 +33,11 @@ Vector4::Vector4(const Double& x,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Vector4::Vector4(const Matrix<4,1>&& rhs)
|
||||||
|
: Vector4(static_cast<const Vector4&&>(rhs))
|
||||||
|
{ }
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* charles::basics::Vector4::X --
|
* charles::basics::Vector4::X --
|
||||||
*/
|
*/
|
||||||
|
@ -96,7 +101,7 @@ Vector4
|
||||||
Vector4::operator*(const Double& rhs)
|
Vector4::operator*(const Double& rhs)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
return dynamic_cast<Vector4&&>(*this * rhs);
|
return static_cast<Vector4&&>(*this * rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ struct Vector4
|
||||||
{
|
{
|
||||||
Vector4();
|
Vector4();
|
||||||
Vector4(const Double& x, const Double& y, const Double& z);
|
Vector4(const Double& x, const Double& y, const Double& z);
|
||||||
|
Vector4(const Matrix<4,1>&& m);
|
||||||
|
|
||||||
Double& X();
|
Double& X();
|
||||||
const Double& X() const;
|
const Double& X() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue