Brunot
Loading...
Searching...
No Matches
Vector4D.cpp File Reference
Include dependency graph for Vector4D.cpp:

Functions

auto operator* (const AffineMatrix &rhs, const Vector4D &lhs) ->Vector4D
auto operator*= (Vector4D &rhs, const AffineMatrix &lhs) ->Vector4D &
auto from_json (const json &j, Vector4D &v) ->void

Function Documentation

◆ from_json()

auto from_json ( const json & j,
Vector4D & v )->void

◆ operator*()

auto operator* ( const AffineMatrix & rhs,
const Vector4D & lhs )->Vector4D

performs rhs*lhs

Parameters
rhsthe matrix
lhsthe vector
Returns
the new Vector

◆ operator*=()

auto operator*= ( Vector4D & rhs,
const AffineMatrix & lhs )->Vector4D &

a*=b is equivalent to a = b * a

Parameters
rhsthe Vector to operate on
lhsthe transformation to apply
Returns
a reference to the vector for chaining