MCPcopy Create free account
hub / github.com/aras-p/ToyPathTracer / getY

Method getY

Cpp/Source/MathSimd.h:30–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29 VM_INLINE float getX() const { return _mm_cvtss_f32(m); }
30 VM_INLINE float getY() const { return _mm_cvtss_f32(_mm_shuffle_ps(m, m, _MM_SHUFFLE(1, 1, 1, 1))); }
31 VM_INLINE float getZ() const { return _mm_cvtss_f32(_mm_shuffle_ps(m, m, _MM_SHUFFLE(2, 2, 2, 2))); }
32 VM_INLINE float getW() const { return _mm_cvtss_f32(_mm_shuffle_ps(m, m, _MM_SHUFFLE(3, 3, 3, 3))); }
33

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected