Tanoda
Leap.Unity.Geometry.Bipyramid Struct Reference

Public Member Functions

 Bipyramid (Vector3 a, Vector3 b, int polySegments=6, float lengthFraction=0.5f, float? radiusFraction=null, float? absoluteRadius=null, Transform transform=null, Matrix4x4? overrideMatrix=null)
 
void DrawLines (System.Action< Vector3, Vector3 > drawLine)
 

Static Public Member Functions

static Bipyramid ModelBone (Vector3 a, Vector3 b, int polySegments=4, float lengthFraction=0.38f, float? radiusFraction=0.0125f, float? absoluteRadius=null, Transform transform=null, Matrix4x4? overrideMatrix=null)
 Rig model bone defaults for a bipyramid. Can override any of the parameters like a normal bipyramid constructor. More...
 
static Bipyramid ThinArrow (Vector3 a, Vector3 b, int polySegments=4, float lengthFraction=0.3f, float? radiusFraction=null, float? absoluteRadius=0.005f, Transform transform=null, Matrix4x4? overrideMatrix=null)
 Thin directed arrow, good for adding directionality to an edge between two points. Can override any of the parameters like a normal bipyramid constructor. More...
 
static Bipyramid Arrowhead (Vector3 a, Vector3 b, int polySegments=6, float lengthFraction=0.38f, float? radiusFraction=0.16f, float? absoluteRadius=null, Transform transform=null, Matrix4x4? overrideMatrix=null)
 Arrowhead defaults for a bipyramid. Can override any of the parameters like a normal bipyramid constructor. More...
 

Public Attributes

Vector3 a
 
Vector3 b
 
int polySegments
 
float lengthFraction
 
float? absoluteRadius
 
float? radiusFraction
 
Transform transform
 

Properties

Matrix4x4 matrix [get]
 
float radius [get]
 

Detailed Description

Definition at line 13 of file Bipyramid.cs.

Constructor & Destructor Documentation

◆ Bipyramid()

Leap.Unity.Geometry.Bipyramid.Bipyramid ( Vector3  a,
Vector3  b,
int  polySegments = 6,
float  lengthFraction = 0.5f,
float?  radiusFraction = null,
float?  absoluteRadius = null,
Transform  transform = null,
Matrix4x4?  overrideMatrix = null 
)

Definition at line 34 of file Bipyramid.cs.

Member Function Documentation

◆ Arrowhead()

static Bipyramid Leap.Unity.Geometry.Bipyramid.Arrowhead ( Vector3  a,
Vector3  b,
int  polySegments = 6,
float  lengthFraction = 0.38f,
float?  radiusFraction = 0.16f,
float?  absoluteRadius = null,
Transform  transform = null,
Matrix4x4?  overrideMatrix = null 
)
static

Arrowhead defaults for a bipyramid. Can override any of the parameters like a normal bipyramid constructor.

Definition at line 78 of file Bipyramid.cs.

◆ DrawLines()

void Leap.Unity.Geometry.Bipyramid.DrawLines ( System.Action< Vector3, Vector3 >  drawLine)

Definition at line 89 of file Bipyramid.cs.

◆ ModelBone()

static Bipyramid Leap.Unity.Geometry.Bipyramid.ModelBone ( Vector3  a,
Vector3  b,
int  polySegments = 4,
float  lengthFraction = 0.38f,
float?  radiusFraction = 0.0125f,
float?  absoluteRadius = null,
Transform  transform = null,
Matrix4x4?  overrideMatrix = null 
)
static

Rig model bone defaults for a bipyramid. Can override any of the parameters like a normal bipyramid constructor.

Definition at line 51 of file Bipyramid.cs.

◆ ThinArrow()

static Bipyramid Leap.Unity.Geometry.Bipyramid.ThinArrow ( Vector3  a,
Vector3  b,
int  polySegments = 4,
float  lengthFraction = 0.3f,
float?  radiusFraction = null,
float?  absoluteRadius = 0.005f,
Transform  transform = null,
Matrix4x4?  overrideMatrix = null 
)
static

Thin directed arrow, good for adding directionality to an edge between two points. Can override any of the parameters like a normal bipyramid constructor.

Definition at line 65 of file Bipyramid.cs.

Member Data Documentation

◆ a

Vector3 Leap.Unity.Geometry.Bipyramid.a

Definition at line 15 of file Bipyramid.cs.

◆ absoluteRadius

float? Leap.Unity.Geometry.Bipyramid.absoluteRadius

Definition at line 19 of file Bipyramid.cs.

◆ b

Vector3 Leap.Unity.Geometry.Bipyramid.b

Definition at line 16 of file Bipyramid.cs.

◆ lengthFraction

float Leap.Unity.Geometry.Bipyramid.lengthFraction

Definition at line 18 of file Bipyramid.cs.

◆ polySegments

int Leap.Unity.Geometry.Bipyramid.polySegments

Definition at line 17 of file Bipyramid.cs.

◆ radiusFraction

float? Leap.Unity.Geometry.Bipyramid.radiusFraction

Definition at line 20 of file Bipyramid.cs.

◆ transform

Transform Leap.Unity.Geometry.Bipyramid.transform

Definition at line 21 of file Bipyramid.cs.

Property Documentation

◆ matrix

Matrix4x4 Leap.Unity.Geometry.Bipyramid.matrix
get

Definition at line 23 of file Bipyramid.cs.

◆ radius

float Leap.Unity.Geometry.Bipyramid.radius
get

Definition at line 28 of file Bipyramid.cs.


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