1.3.72
 
Loading...
Searching...
No Matches
OptiX8Math.h File Reference
#include <vector_types.h>

Go to the source code of this file.

Functions

__host__ __device__ __forceinline__ float3 operator+ (const float3 &a, const float3 &b)
 
__host__ __device__ __forceinline__ float3 operator- (const float3 &a, const float3 &b)
 
__host__ __device__ __forceinline__ float3 operator* (const float3 &a, float s)
 
__host__ __device__ __forceinline__ float3 operator* (float s, const float3 &a)
 
__host__ __device__ __forceinline__ float3 operator* (const float3 &a, const float3 &b)
 
__host__ __device__ __forceinline__ float3 operator/ (const float3 &a, float s)
 
__host__ __device__ __forceinline__ float3 operator- (const float3 &a)
 
__host__ __device__ __forceinline__ float3 & operator+= (float3 &a, const float3 &b)
 
__host__ __device__ __forceinline__ float3 & operator-= (float3 &a, const float3 &b)
 
__host__ __device__ __forceinline__ float3 & operator*= (float3 &a, float s)
 
__host__ __device__ __forceinline__ float2 operator+ (const float2 &a, const float2 &b)
 
__host__ __device__ __forceinline__ float2 operator- (const float2 &a, const float2 &b)
 
__host__ __device__ __forceinline__ float2 operator* (const float2 &a, float s)
 
__host__ __device__ __forceinline__ float2 operator* (float s, const float2 &a)
 
__host__ __device__ __forceinline__ float dot (const float3 &a, const float3 &b)
 
__host__ __device__ __forceinline__ float3 cross (const float3 &a, const float3 &b)
 
__host__ __device__ __forceinline__ float length (const float3 &v)
 
__host__ __device__ __forceinline__ float3 normalize (const float3 &v)
 
__host__ __device__ __forceinline__ float dot (const float2 &a, const float2 &b)
 

Detailed Description

Inline float3/float2 math helpers for OptiX 8.1 device code.

OptiX 8 removed the optixu:: math namespace present in OptiX 6.5. This header provides the minimal set of operators and functions needed by the Helios radiation model device programs.

Copyright (C) 2016-2026 Brian Bailey

Definition in file OptiX8Math.h.

Function Documentation

◆ cross()

__host__ __device__ __forceinline__ float3 cross ( const float3 &  a,
const float3 &  b 
)

Definition at line 75 of file OptiX8Math.h.

◆ dot() [1/2]

__host__ __device__ __forceinline__ float dot ( const float2 &  a,
const float2 &  b 
)

Definition at line 91 of file OptiX8Math.h.

◆ dot() [2/2]

__host__ __device__ __forceinline__ float dot ( const float3 &  a,
const float3 &  b 
)

Definition at line 71 of file OptiX8Math.h.

◆ length()

__host__ __device__ __forceinline__ float length ( const float3 &  v)

Definition at line 82 of file OptiX8Math.h.

◆ normalize()

__host__ __device__ __forceinline__ float3 normalize ( const float3 &  v)

Definition at line 86 of file OptiX8Math.h.

◆ operator*() [1/5]

__host__ __device__ __forceinline__ float2 operator* ( const float2 &  a,
float  s 
)

Definition at line 60 of file OptiX8Math.h.

◆ operator*() [2/5]

__host__ __device__ __forceinline__ float3 operator* ( const float3 &  a,
const float3 &  b 
)

Definition at line 31 of file OptiX8Math.h.

◆ operator*() [3/5]

__host__ __device__ __forceinline__ float3 operator* ( const float3 &  a,
float  s 
)

Definition at line 25 of file OptiX8Math.h.

◆ operator*() [4/5]

__host__ __device__ __forceinline__ float2 operator* ( float  s,
const float2 &  a 
)

Definition at line 63 of file OptiX8Math.h.

◆ operator*() [5/5]

__host__ __device__ __forceinline__ float3 operator* ( float  s,
const float3 &  a 
)

Definition at line 28 of file OptiX8Math.h.

◆ operator*=()

__host__ __device__ __forceinline__ float3 & operator*= ( float3 &  a,
float  s 
)

Definition at line 46 of file OptiX8Math.h.

◆ operator+() [1/2]

__host__ __device__ __forceinline__ float2 operator+ ( const float2 &  a,
const float2 &  b 
)

Definition at line 54 of file OptiX8Math.h.

◆ operator+() [2/2]

__host__ __device__ __forceinline__ float3 operator+ ( const float3 &  a,
const float3 &  b 
)

Definition at line 19 of file OptiX8Math.h.

◆ operator+=()

__host__ __device__ __forceinline__ float3 & operator+= ( float3 &  a,
const float3 &  b 
)

Definition at line 40 of file OptiX8Math.h.

◆ operator-() [1/3]

__host__ __device__ __forceinline__ float2 operator- ( const float2 &  a,
const float2 &  b 
)

Definition at line 57 of file OptiX8Math.h.

◆ operator-() [2/3]

__host__ __device__ __forceinline__ float3 operator- ( const float3 &  a)

Definition at line 37 of file OptiX8Math.h.

◆ operator-() [3/3]

__host__ __device__ __forceinline__ float3 operator- ( const float3 &  a,
const float3 &  b 
)

Definition at line 22 of file OptiX8Math.h.

◆ operator-=()

__host__ __device__ __forceinline__ float3 & operator-= ( float3 &  a,
const float3 &  b 
)

Definition at line 43 of file OptiX8Math.h.

◆ operator/()

__host__ __device__ __forceinline__ float3 operator/ ( const float3 &  a,
float  s 
)

Definition at line 34 of file OptiX8Math.h.