Function

simd_reflect

Returns the reflection direction of an incident vector and a unit normal vector.

Declaration

simd_double3 simd_reflect(simd_double3 __x, simd_double3 __n);

See Also

Geometry Functions

simd_cross

Returns the cross product of two vectors.

simd_dot

Returns the dot product of two vectors.

simd_insphere

Returns true if a point is within a sphere; false otherwise.

simd_normalize

Returns a vector pointing in the same direction of the supplied vector with a length of 1.

simd_orient

Tests the orientation of the three supplied vectors.

simd_orient

Tests the orientation of the four supplied vectors.

simd_project

Returns the first vector projected onto the second vector.

simd_precise_normalize

Returns the precise normalized vector.

simd_precise_project

Returns the precise projected vector.

simd_fast_normalize

Returns the fast normalized vector.

simd_fast_project

Returns the fast projected vector.

simd_distance_squared

Returns the square of the distance between two vectors.

simd_length

Returns the length of a vector.

simd_length_squared

Returns the square of the length of a vector.

simd_norm_inf

Returns the inf-norm (the maximum absolute value) of a vector.

simd_norm_one

Returns the one-norm (the sum of absolute values) of a vector.

simd_refract

Returns the refraction direction of an incident vector, a unit normal vector, and an index of refraction eta.