Tanoda
Leap.Unity.Geometry.SphericalSection Struct Reference

Public Member Functions

 SphericalSection (float angle, float radius, float minRadius=0, Transform transform=null)
 
Vector3 SampleFromUnitCube (Vector3 unitCubePoint)
 Converts a sample point from the unit cube (XYZ [-1, 1]) to a sample point in the spherical section. X and Y are converted from the unit square [-1, 1] to the unit circle for the circule section of the cone section, and Z is used to sample from the base vertex out to the maximum section radius. More...
 
void Draw (Drawer drawer, Color? color=null, Matrix4x4? overrideMatrix=null)
 

Public Attributes

float angle
 
float radius
 
float minRadius
 
Transform transform
 
Matrix4x4? overrideMatrix
 

Properties

float angleRad [get]
 
Matrix4x4 matrix [get]
 

Detailed Description

Definition at line 14 of file SphericalSection.cs.

Constructor & Destructor Documentation

◆ SphericalSection()

Leap.Unity.Geometry.SphericalSection.SphericalSection ( float  angle,
float  radius,
float  minRadius = 0,
Transform  transform = null 
)

Definition at line 33 of file SphericalSection.cs.

Member Function Documentation

◆ Draw()

void Leap.Unity.Geometry.SphericalSection.Draw ( Drawer  drawer,
Color color = null,
Matrix4x4?  overrideMatrix = null 
)

Definition at line 67 of file SphericalSection.cs.

◆ SampleFromUnitCube()

Vector3 Leap.Unity.Geometry.SphericalSection.SampleFromUnitCube ( Vector3  unitCubePoint)

Converts a sample point from the unit cube (XYZ [-1, 1]) to a sample point in the spherical section. X and Y are converted from the unit square [-1, 1] to the unit circle for the circule section of the cone section, and Z is used to sample from the base vertex out to the maximum section radius.

Definition at line 46 of file SphericalSection.cs.

Member Data Documentation

◆ angle

float Leap.Unity.Geometry.SphericalSection.angle

Definition at line 16 of file SphericalSection.cs.

◆ minRadius

float Leap.Unity.Geometry.SphericalSection.minRadius

Definition at line 19 of file SphericalSection.cs.

◆ overrideMatrix

Matrix4x4? Leap.Unity.Geometry.SphericalSection.overrideMatrix

Definition at line 21 of file SphericalSection.cs.

◆ radius

float Leap.Unity.Geometry.SphericalSection.radius

Definition at line 18 of file SphericalSection.cs.

◆ transform

Transform Leap.Unity.Geometry.SphericalSection.transform

Definition at line 20 of file SphericalSection.cs.

Property Documentation

◆ angleRad

float Leap.Unity.Geometry.SphericalSection.angleRad
get

Definition at line 17 of file SphericalSection.cs.

◆ matrix

Matrix4x4 Leap.Unity.Geometry.SphericalSection.matrix
get

Definition at line 23 of file SphericalSection.cs.


The documentation for this struct was generated from the following file: