Tanoda
Leap.Unity.Geometry.Sphere Struct Reference

Public Member Functions

 Sphere (LocalSphere localSphere, Transform withTransform)
 
 Sphere (float radius=0.10f, Component transformSource=null)
 
 Sphere (float radius=0.10f)
 
 Sphere (float radius=0.10f, Matrix4x4? overrideMatrix=null)
 
 Sphere (Vector3 center=default(Vector3), float radius=0.10f)
 
 Sphere (Vector3 center=default(Vector3), float radius=0.10f, Component transformSource=null, Matrix4x4? overrideMatrix=null)
 
 Sphere (Vector3 center=default(Vector3), float radius=0.10f, Transform transform=null)
 
 Sphere (Sphere other)
 
Sphere WithCenter (Vector3 center)
 
bool Overlaps (Box box)
 
float DistanceTo (Rect rect)
 Returns the distance between the closest points on the Rect and the Sphere, or 0 if the two overlap. More...
 
bool Overlaps (Rect rect)
 
void DrawLines (Action< Vector3, Vector3 > lineDrawingFunc, int latitudinalDivisions=5, int longitudinalDivisions=5, int numCircleSegments=7, Matrix4x4? matrixOverride=null)
 
void DrawRuntimeGizmos (RuntimeGizmoDrawer drawer)
 

Public Attributes

Transform transform
 
Vector3 center
 
float radius
 
Matrix4x4? overrideMatrix
 

Properties

Matrix4x4 matrix [get]
 Local-to-world matrix for this Sphere. More...
 
Vector3 position [get]
 The world position of the center of this sphere (read only). This is dependent on the state of its Transform if it has one, as well as its defined local-space center position. More...
 

Detailed Description

Definition at line 19 of file Sphere.cs.

Constructor & Destructor Documentation

◆ Sphere() [1/8]

Leap.Unity.Geometry.Sphere.Sphere ( LocalSphere  localSphere,
Transform  withTransform 
)

Definition at line 28 of file Sphere.cs.

◆ Sphere() [2/8]

Leap.Unity.Geometry.Sphere.Sphere ( float  radius = 0.10f,
Component  transformSource = null 
)

Definition at line 31 of file Sphere.cs.

◆ Sphere() [3/8]

Leap.Unity.Geometry.Sphere.Sphere ( float  radius = 0.10f)

Definition at line 34 of file Sphere.cs.

◆ Sphere() [4/8]

Leap.Unity.Geometry.Sphere.Sphere ( float  radius = 0.10f,
Matrix4x4?  overrideMatrix = null 
)

Definition at line 37 of file Sphere.cs.

◆ Sphere() [5/8]

Leap.Unity.Geometry.Sphere.Sphere ( Vector3  center = default(Vector3),
float  radius = 0.10f 
)

Definition at line 40 of file Sphere.cs.

◆ Sphere() [6/8]

Leap.Unity.Geometry.Sphere.Sphere ( Vector3  center = default(Vector3),
float  radius = 0.10f,
Component  transformSource = null,
Matrix4x4?  overrideMatrix = null 
)

Definition at line 43 of file Sphere.cs.

◆ Sphere() [7/8]

Leap.Unity.Geometry.Sphere.Sphere ( Vector3  center = default(Vector3),
float  radius = 0.10f,
Transform  transform = null 
)

Definition at line 52 of file Sphere.cs.

◆ Sphere() [8/8]

Leap.Unity.Geometry.Sphere.Sphere ( Sphere  other)

Definition at line 55 of file Sphere.cs.

Member Function Documentation

◆ DistanceTo()

float Leap.Unity.Geometry.Sphere.DistanceTo ( Rect  rect)

Returns the distance between the closest points on the Rect and the Sphere, or 0 if the two overlap.

Definition at line 107 of file Sphere.cs.

◆ DrawLines()

void Leap.Unity.Geometry.Sphere.DrawLines ( Action< Vector3, Vector3 >  lineDrawingFunc,
int  latitudinalDivisions = 5,
int  longitudinalDivisions = 5,
int  numCircleSegments = 7,
Matrix4x4?  matrixOverride = null 
)

Definition at line 119 of file Sphere.cs.

◆ DrawRuntimeGizmos()

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

Definition at line 177 of file Sphere.cs.

◆ Overlaps() [1/2]

bool Leap.Unity.Geometry.Sphere.Overlaps ( Box  box)

Definition at line 99 of file Sphere.cs.

◆ Overlaps() [2/2]

bool Leap.Unity.Geometry.Sphere.Overlaps ( Rect  rect)

Definition at line 111 of file Sphere.cs.

◆ WithCenter()

Sphere Leap.Unity.Geometry.Sphere.WithCenter ( Vector3  center)

Definition at line 91 of file Sphere.cs.

Member Data Documentation

◆ center

Vector3 Leap.Unity.Geometry.Sphere.center

Definition at line 22 of file Sphere.cs.

◆ overrideMatrix

Matrix4x4? Leap.Unity.Geometry.Sphere.overrideMatrix

Definition at line 24 of file Sphere.cs.

◆ radius

float Leap.Unity.Geometry.Sphere.radius

Definition at line 23 of file Sphere.cs.

◆ transform

Transform Leap.Unity.Geometry.Sphere.transform

Definition at line 21 of file Sphere.cs.

Property Documentation

◆ matrix

Matrix4x4 Leap.Unity.Geometry.Sphere.matrix
get

Local-to-world matrix for this Sphere.

Definition at line 64 of file Sphere.cs.

◆ position

Vector3 Leap.Unity.Geometry.Sphere.position
get

The world position of the center of this sphere (read only). This is dependent on the state of its Transform if it has one, as well as its defined local-space center position.

Definition at line 81 of file Sphere.cs.


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