Tanoda
Leap.Unity.Geometry.LocalSegment2 Struct Reference

Public Member Functions

 LocalSegment2 (Vector2 a, Vector2 b)
 
float Parameterize (Vector2 pointOnSegment)
 Given a point on the segment, parameterizes that point into a value such that a + (b - a).magnitude * value = b. More...
 

Public Attributes

Vector2 a
 
Vector2 b
 

Detailed Description

Definition at line 16 of file LocalSegment2.cs.

Constructor & Destructor Documentation

◆ LocalSegment2()

Leap.Unity.Geometry.LocalSegment2.LocalSegment2 ( Vector2  a,
Vector2  b 
)

Definition at line 20 of file LocalSegment2.cs.

Member Function Documentation

◆ Parameterize()

float Leap.Unity.Geometry.LocalSegment2.Parameterize ( Vector2  pointOnSegment)

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

Definition at line 29 of file LocalSegment2.cs.

Member Data Documentation

◆ a

Vector2 Leap.Unity.Geometry.LocalSegment2.a

Definition at line 18 of file LocalSegment2.cs.

◆ b

Vector2 Leap.Unity.Geometry.LocalSegment2.b

Definition at line 18 of file LocalSegment2.cs.


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