DOTS Geometry
 
Loading...
Searching...
No Matches
Tetrahedron Struct Reference

Public Member Functions

float Area ()
 
float3 GetCenter ()
 
 Tetrahedron (float3 a, float3 b, float3 c, float3 d)
 
float Volume ()
 

Static Public Member Functions

static void CalculateCircumsphere (Tetrahedron tetrahedron, out float3 center, out float radiusSq, float mergeDistance=10e-5f, float epsilon=10e-5f)
 Calculates a sphere with the property that all four points of the tetrahedron lie on that sphere.
 

Public Attributes

float3 a
 
float3 b
 
float3 c
 
float3 d
 

Member Function Documentation

◆ CalculateCircumsphere()

static void CalculateCircumsphere ( Tetrahedron tetrahedron,
out float3 center,
out float radiusSq,
float mergeDistance = 10e-5f,
float epsilon = 10e-5f )
static

Calculates a sphere with the property that all four points of the tetrahedron lie on that sphere.

Parameters
tetrahedron
center
radiusSq
mergeDistance
epsilon

◆ GetCenter()

float3 GetCenter ( )
Returns
The barycenter of the tetrahedron