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

Functions

auto operator* (float scalar, const Vector4D &vector4D) ->Vector4D
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
auto to_json (json &j, const Vector4D &v) ->void

Function Documentation

◆ from_json()

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

◆ operator*() [1/2]

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

performs rhs*lhs

Parameters
rhsthe matrix
lhsthe vector
Returns
the new Vector

◆ operator*() [2/2]

auto operator* ( float scalar,
const Vector4D & vector4D )->Vector4D

◆ 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

◆ to_json()

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