Tanoda
Leap.Unity.Geometry.Box Struct Reference

Public Member Functions

 Box (LocalBox localBox, Transform withTransform)
 
 Box (Vector3 center, Vector3 radii, Component transformSource=null)
 
 Box (Vector3 radii)
 
 Box (Vector3 radii, Component transformSource)
 
 Box (float radius)
 
 Box (float radius, Component transformSource)
 
Vector3 Sample (Vector3 coords01)
 Returns the world-space position of the normalized coordinates (X, Y, Z each from 0 to 1) given this box's radii and attached transform. More...
 
void DrawLines (System.Action< Vector3, Vector3 > drawLineFunc, int divisions=0)
 
void Draw (Drawer drawer, Color? color=null)
 
void DrawRuntimeGizmos (RuntimeGizmoDrawer drawer)
 

Public Attributes

Transform transform
 
Vector3 center
 
Vector3 radii
 
Matrix4x4? overrideMatrix
 

Properties

static Box unit [get]
 
Matrix4x4 matrix [get]
 Local-to-world matrix for this Box. More...
 

Detailed Description

Definition at line 16 of file Box.cs.

Constructor & Destructor Documentation

◆ Box() [1/6]

Leap.Unity.Geometry.Box.Box ( LocalBox  localBox,
Transform  withTransform 
)

Definition at line 30 of file Box.cs.

◆ Box() [2/6]

Leap.Unity.Geometry.Box.Box ( Vector3  center,
Vector3  radii,
Component  transformSource = null 
)

Definition at line 35 of file Box.cs.

◆ Box() [3/6]

Leap.Unity.Geometry.Box.Box ( Vector3  radii)

Definition at line 43 of file Box.cs.

◆ Box() [4/6]

Leap.Unity.Geometry.Box.Box ( Vector3  radii,
Component  transformSource 
)

Definition at line 45 of file Box.cs.

◆ Box() [5/6]

Leap.Unity.Geometry.Box.Box ( float  radius)

Definition at line 48 of file Box.cs.

◆ Box() [6/6]

Leap.Unity.Geometry.Box.Box ( float  radius,
Component  transformSource 
)

Definition at line 50 of file Box.cs.

Member Function Documentation

◆ Draw()

void Leap.Unity.Geometry.Box.Draw ( Drawer  drawer,
Color color = null 
)

Definition at line 149 of file Box.cs.

◆ DrawLines()

void Leap.Unity.Geometry.Box.DrawLines ( System.Action< Vector3, Vector3 >  drawLineFunc,
int  divisions = 0 
)

Definition at line 115 of file Box.cs.

◆ DrawRuntimeGizmos()

void Leap.Unity.Geometry.Box.DrawRuntimeGizmos ( RuntimeGizmoDrawer  drawer)

Definition at line 154 of file Box.cs.

◆ Sample()

Vector3 Leap.Unity.Geometry.Box.Sample ( Vector3  coords01)

Returns the world-space position of the normalized coordinates (X, Y, Z each from 0 to 1) given this box's radii and attached transform.

Definition at line 110 of file Box.cs.

Member Data Documentation

◆ center

Vector3 Leap.Unity.Geometry.Box.center

Definition at line 19 of file Box.cs.

◆ overrideMatrix

Matrix4x4? Leap.Unity.Geometry.Box.overrideMatrix

Definition at line 21 of file Box.cs.

◆ radii

Vector3 Leap.Unity.Geometry.Box.radii

Definition at line 20 of file Box.cs.

◆ transform

Transform Leap.Unity.Geometry.Box.transform

Definition at line 18 of file Box.cs.

Property Documentation

◆ matrix

Matrix4x4 Leap.Unity.Geometry.Box.matrix
get

Local-to-world matrix for this Box.

Definition at line 58 of file Box.cs.

◆ unit

Box Leap.Unity.Geometry.Box.unit
staticget

Definition at line 53 of file Box.cs.


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