Tanoda
Leap.Unity.Geometry.LocalRect Struct Reference
Inheritance diagram for Leap.Unity.Geometry.LocalRect:
Leap.Unity.Encoding.IInterpolable< LocalRect >

Classes

struct  LineEnumerator
 

Public Member Functions

 LocalRect (Vector3 center, Vector2 radii)
 
 LocalRect (Vector2 radii)
 
 LocalRect (float top, float bottom, float left, float right)
 
 LocalRect (UnityRect uRect)
 
Rect With (Transform transform)
 
UnityRect ToUnityRect ()
 
LocalRect Scale (float radiusMultipler)
 Returns a new LocalRect with scaled radii. The center is unchanged. More...
 
LocalRect Scale (Vector2 radiusMultiplers)
 Returns a new LocalRect with component-wise scaled radii. The center is unchanged. More...
 
LocalRect AlignToCenter (LocalRect ofRect)
 Returns a new LocalRect whose center matches the center of the argument rect. More...
 
LocalRect CopyFrom (LocalRect toCopy)
 
bool FillLerped (LocalRect from, LocalRect to, float t)
 
bool FillSplined (LocalRect a, LocalRect b, LocalRect c, LocalRect d, float t)
 
LineEnumerator TakeLines (float height, Margins? cellMargins=null, VerticalOrigin? verticalOrigin=null)
 
- Public Member Functions inherited from Leap.Unity.Encoding.IInterpolable< LocalRect >
CopyFrom (T toCopy)
 
bool FillLerped (T from, T to, float t)
 
bool FillSplined (T a, T b, T c, T d, float t)
 

Static Public Member Functions

static LocalRect FromUnityRect (UnityRect uRect)
 
static LocalRect FromRadius (float boxRadius)
 

Public Attributes

Vector3 center
 
Vector2 radii
 

Static Public Attributes

static readonly LocalRect unit
 

Properties

Vector3 corner00 [get]
 
Vector3 corner10 [get]
 
float top [get]
 
float bottom [get]
 
float left [get]
 
float right [get]
 
float width [get]
 
float height [get]
 

Detailed Description

Definition at line 20 of file LocalRect.cs.

Constructor & Destructor Documentation

◆ LocalRect() [1/4]

Leap.Unity.Geometry.LocalRect.LocalRect ( Vector3  center,
Vector2  radii 
)

Definition at line 28 of file LocalRect.cs.

◆ LocalRect() [2/4]

Leap.Unity.Geometry.LocalRect.LocalRect ( Vector2  radii)

Definition at line 33 of file LocalRect.cs.

◆ LocalRect() [3/4]

Leap.Unity.Geometry.LocalRect.LocalRect ( float  top,
float  bottom,
float  left,
float  right 
)

Definition at line 35 of file LocalRect.cs.

◆ LocalRect() [4/4]

Leap.Unity.Geometry.LocalRect.LocalRect ( UnityRect  uRect)

Definition at line 42 of file LocalRect.cs.

Member Function Documentation

◆ AlignToCenter()

LocalRect Leap.Unity.Geometry.LocalRect.AlignToCenter ( LocalRect  ofRect)

Returns a new LocalRect whose center matches the center of the argument rect.

Definition at line 90 of file LocalRect.cs.

◆ CopyFrom()

LocalRect Leap.Unity.Geometry.LocalRect.CopyFrom ( LocalRect  toCopy)

Definition at line 94 of file LocalRect.cs.

◆ FillLerped()

bool Leap.Unity.Geometry.LocalRect.FillLerped ( LocalRect  from,
LocalRect  to,
float  t 
)

Definition at line 100 of file LocalRect.cs.

◆ FillSplined()

bool Leap.Unity.Geometry.LocalRect.FillSplined ( LocalRect  a,
LocalRect  b,
LocalRect  c,
LocalRect  d,
float  t 
)

Definition at line 106 of file LocalRect.cs.

◆ FromRadius()

static LocalRect Leap.Unity.Geometry.LocalRect.FromRadius ( float  boxRadius)
static

Definition at line 52 of file LocalRect.cs.

◆ FromUnityRect()

static LocalRect Leap.Unity.Geometry.LocalRect.FromUnityRect ( UnityRect  uRect)
static

Definition at line 47 of file LocalRect.cs.

◆ Scale() [1/2]

LocalRect Leap.Unity.Geometry.LocalRect.Scale ( float  radiusMultipler)

Returns a new LocalRect with scaled radii. The center is unchanged.

Definition at line 78 of file LocalRect.cs.

◆ Scale() [2/2]

LocalRect Leap.Unity.Geometry.LocalRect.Scale ( Vector2  radiusMultiplers)

Returns a new LocalRect with component-wise scaled radii. The center is unchanged.

Definition at line 84 of file LocalRect.cs.

◆ TakeLines()

LineEnumerator Leap.Unity.Geometry.LocalRect.TakeLines ( float  height,
Margins cellMargins = null,
VerticalOrigin verticalOrigin = null 
)

Definition at line 116 of file LocalRect.cs.

◆ ToUnityRect()

UnityRect Leap.Unity.Geometry.LocalRect.ToUnityRect ( )

Definition at line 72 of file LocalRect.cs.

◆ With()

Rect Leap.Unity.Geometry.LocalRect.With ( Transform  transform)

Definition at line 68 of file LocalRect.cs.

Member Data Documentation

◆ center

Vector3 Leap.Unity.Geometry.LocalRect.center

Definition at line 22 of file LocalRect.cs.

◆ radii

Vector2 Leap.Unity.Geometry.LocalRect.radii

Definition at line 23 of file LocalRect.cs.

◆ unit

readonly LocalRect Leap.Unity.Geometry.LocalRect.unit
static
Initial value:

Definition at line 25 of file LocalRect.cs.

Property Documentation

◆ bottom

float Leap.Unity.Geometry.LocalRect.bottom
get

Definition at line 62 of file LocalRect.cs.

◆ corner00

Vector3 Leap.Unity.Geometry.LocalRect.corner00
get

Definition at line 56 of file LocalRect.cs.

◆ corner10

Vector3 Leap.Unity.Geometry.LocalRect.corner10
get

Definition at line 57 of file LocalRect.cs.

◆ height

float Leap.Unity.Geometry.LocalRect.height
get

Definition at line 66 of file LocalRect.cs.

◆ left

float Leap.Unity.Geometry.LocalRect.left
get

Definition at line 63 of file LocalRect.cs.

◆ right

float Leap.Unity.Geometry.LocalRect.right
get

Definition at line 64 of file LocalRect.cs.

◆ top

float Leap.Unity.Geometry.LocalRect.top
get

Definition at line 61 of file LocalRect.cs.

◆ width

float Leap.Unity.Geometry.LocalRect.width
get

Definition at line 65 of file LocalRect.cs.


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