Loading [MathJax]/extensions/tex2jax.js
Jolt Physics
A multi core friendly Game Physics Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Swizzle.h File Reference

Go to the source code of this file.

Enumerations

enum  {
  SWIZZLE_X = 0 , SWIZZLE_Y = 1 , SWIZZLE_Z = 2 , SWIZZLE_W = 3 ,
  SWIZZLE_UNUSED = 2
}
 Enum indicating which component to use when swizzling. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Enum indicating which component to use when swizzling.

Enumerator
SWIZZLE_X 

Use the X component.

SWIZZLE_Y 

Use the Y component.

SWIZZLE_Z 

Use the Z component.

SWIZZLE_W 

Use the W component.

SWIZZLE_UNUSED 

We always use the Z component when we don't specifically want to initialize a value, this is consistent with what is done in Vec3(x, y, z), Vec3(Float3 &) and Vec3::sLoadFloat3Unsafe.