Tanoda
Leap.Unity.Geometry.LocalSegment3 Struct Reference

Public Member Functions

 LocalSegment3 (Vector3 a, Vector3 b)
 
float Parameterize (Vector3 pointOnSegment)
 Given a point on the segment, parameterizes that point into a value such that a + (b - a).magnitude * value = b. More...
 
Vector3 Evaluate (float t)
 
LocalSegment3 Transform (Matrix4x4 m, bool fullMultiply=false)
 
float Intersect (Rect rect)
 Returns the squared distance between this line segment and the rect. More...
 
void DrawRuntimeGizmos (RuntimeGizmoDrawer drawer)
 

Public Attributes

Vector3 a
 
Vector3 b
 

Detailed Description

Definition at line 17 of file LocalSegment3.cs.

Constructor & Destructor Documentation

◆ LocalSegment3()

Leap.Unity.Geometry.LocalSegment3.LocalSegment3 ( Vector3  a,
Vector3  b 
)

Definition at line 21 of file LocalSegment3.cs.

Member Function Documentation

◆ DrawRuntimeGizmos()

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

Definition at line 62 of file LocalSegment3.cs.

◆ Evaluate()

Vector3 Leap.Unity.Geometry.LocalSegment3.Evaluate ( float  t)

Definition at line 35 of file LocalSegment3.cs.

◆ Intersect()

float Leap.Unity.Geometry.LocalSegment3.Intersect ( Rect  rect)

Returns the squared distance between this line segment and the rect.

Definition at line 54 of file LocalSegment3.cs.

◆ Parameterize()

float Leap.Unity.Geometry.LocalSegment3.Parameterize ( Vector3  pointOnSegment)

Given a point on the segment, parameterizes that point into a value such that a + (b - a).magnitude * value = b.

Definition at line 30 of file LocalSegment3.cs.

◆ Transform()

LocalSegment3 Leap.Unity.Geometry.LocalSegment3.Transform ( Matrix4x4  m,
bool  fullMultiply = false 
)

Definition at line 40 of file LocalSegment3.cs.

Member Data Documentation

◆ a

Vector3 Leap.Unity.Geometry.LocalSegment3.a

Definition at line 19 of file LocalSegment3.cs.

◆ b

Vector3 Leap.Unity.Geometry.LocalSegment3.b

Definition at line 19 of file LocalSegment3.cs.


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