MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / unit3

Function unit3

Source/astcenc_vecmathlib.h:319–323  ·  view source on GitHub ↗

* @brief Factory that returns a unit length 3 component vfloat4. */

Source from the content-addressed store, hash-verified

317 * @brief Factory that returns a unit length 3 component vfloat4.
318 */
319static ASTCENC_SIMD_INLINE vfloat4 unit3()
320{
321 float val = 0.577350258827209473f;
322 return vfloat4(val, val, val, 0.0f);
323}
324
325/**
326 * @brief Factory that returns a unit length 2 component vfloat4.

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected