|
| 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) |
|
Definition at line 14 of file SphericalSection.cs.
◆ SphericalSection()
Leap.Unity.Geometry.SphericalSection.SphericalSection |
( |
float |
angle, |
|
|
float |
radius, |
|
|
float |
minRadius = 0 , |
|
|
Transform |
transform = null |
|
) |
| |
◆ Draw()
void Leap.Unity.Geometry.SphericalSection.Draw |
( |
Drawer |
drawer, |
|
|
Color? |
color = null , |
|
|
Matrix4x4? |
overrideMatrix = null |
|
) |
| |
◆ 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.
◆ angle
float Leap.Unity.Geometry.SphericalSection.angle |
◆ minRadius
float Leap.Unity.Geometry.SphericalSection.minRadius |
◆ overrideMatrix
Matrix4x4? Leap.Unity.Geometry.SphericalSection.overrideMatrix |
◆ radius
float Leap.Unity.Geometry.SphericalSection.radius |
◆ transform
Transform Leap.Unity.Geometry.SphericalSection.transform |
◆ angleRad
float Leap.Unity.Geometry.SphericalSection.angleRad |
|
get |
◆ matrix
Matrix4x4 Leap.Unity.Geometry.SphericalSection.matrix |
|
get |
The documentation for this struct was generated from the following file: