MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / operator *

Function operator *

TSAlgebra.h:2637–2642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2635 template <typename m_type_struct, int m_count, int m_index_00, int m_index_01, int m_index_10, int m_index_11,
2636 typename v_type_struct, int v_count, int v_index_x, int v_index_y>
2637 inline typename v_type_struct::vector2D_type operator *(const Submat2D<m_type_struct, m_count, m_index_00, m_index_01, m_index_10, m_index_11>& m,
2638 const Subvec2D<v_type_struct, v_count, v_index_x, v_index_y>& v)
2639 {
2640 return (typename v_type_struct::vector2D_type(m.data[m_index_00] * v.data[v_index_x] + m.data[m_index_01] * v.data[v_index_y],
2641 m.data[m_index_10] * v.data[v_index_x] + m.data[m_index_11] * v.data[v_index_y]));
2642 }
2643
2644 template <typename v_type_struct, int v_count, int v_index_x, int v_index_y,
2645 typename m_type_struct, int m_count, int m_index_00, int m_index_01, int m_index_10, int m_index_11>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected