Skip to content
Snippets Groups Projects

Resolve #135 with principal surface splats

Merged Nicolas Pope requested to merge feature/135/splatting into master
14 files
+ 1215
616
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -406,6 +406,12 @@ inline __host__ __device__ float length(float3 v)
@@ -406,6 +406,12 @@ inline __host__ __device__ float length(float3 v)
return sqrtf(dot(v, v));
return sqrtf(dot(v, v));
}
}
 
// length squared
 
inline __host__ __device__ float length2(const float3 &v)
 
{
 
return dot(v, v);
 
}
 
// normalize
// normalize
inline __host__ __device__ float3 normalize(float3 v)
inline __host__ __device__ float3 normalize(float3 v)
{
{
Loading