| 601 | |
| 602 | template <typename type_struct, int index_x, int index_y, int index_z, int index_w> |
| 603 | struct ConverterVector4D |
| 604 | { |
| 605 | typedef typename type_struct::component_type component_type; |
| 606 | typedef typename type_struct::vector4D_type vector4D_type; |
| 607 | typedef typename type_struct::vector4D_type const_vector4D_type; |
| 608 | |
| 609 | static vector4D_type Convert(component_type *data) |
| 610 | { |
| 611 | return (vector4D_type(data[index_x], data[index_y], data[index_z], data[index_w])); |
| 612 | } |
| 613 | |
| 614 | static const_vector4D_type Convert(const component_type *data) |
| 615 | { |
| 616 | return (const_vector4D_type(data[index_x], data[index_y], data[index_z], data[index_w])); |
| 617 | } |
| 618 | }; |
| 619 | |
| 620 | template <typename type_struct> |
| 621 | struct ConverterVector4D<type_struct, 0, 1, 2, 3> |
nothing calls this directly
no outgoing calls
no test coverage detected