Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.UIEngine2.Modules.Graphs.LineUtils Class Reference

Static Public Member Functions

static void SmoothLine (List< Vector3 > source, float nearPointsThreshold, float noiseThreshold, bool raycastExtraPoints)
 Smooths line from system noise values. More...
 
static IEnumerator SmoothLineCoroutine (List< Vector3 > source, float nearPointsThreshold, float noiseThreshold, bool raycastExtraPoints, Action< object[]> onCompute, params object[] args)
 Smooths line from system noise values. More...
 
static void ClearNoise (List< Vector3 > source, float threshold)
 Clears abnormal peaks from the line. More...
 
static void TrimToLoopedPoints (List< Vector3 > source, float threshold=0.005f)
 Trims the segments of line that afterwards turns into the looped segment. More...
 
static void TrimNearPoints (List< Vector3 > source, float threshold)
 Trims the points that placed withing the distance threshold. More...
 
static void AddRaycastPoints (List< Vector3 > source)
 Adds extra points to the list of points that defines segments ray interactions. More...
 
static bool AABB (Vector3 p0, Vector3 p1, Vector3 point)
 Checks that point withing the rect defined within rect points. More...
 
static float ToLineDistance (Vector3 p0, Vector3 p1, Vector3 point)
 Check distance from point to line. More...
 

Member Function Documentation

◆ AABB()

static bool Doloro.UIEngine2.Modules.Graphs.LineUtils.AABB ( Vector3  p0,
Vector3  p1,
Vector3  point 
)
static

Checks that point withing the rect defined within rect points.

Parameters
p0First point that defines the world space rect.
p1Second point that defines the world space rect.
pointPoint to intersection check.
Returns
is the point placed within the rect.

◆ AddRaycastPoints()

static void Doloro.UIEngine2.Modules.Graphs.LineUtils.AddRaycastPoints ( List< Vector3 >  source)
static

Adds extra points to the list of points that defines segments ray interactions.

Parameters
sourceCollection of source points.

◆ ClearNoise()

static void Doloro.UIEngine2.Modules.Graphs.LineUtils.ClearNoise ( List< Vector3 >  source,
float  threshold 
)
static

Clears abnormal peaks from the line.

Parameters
sourceCollection of points to handle.
thresholdDistance between point and near segment that should be considered as the one that must be collapsed.

◆ SmoothLine()

static void Doloro.UIEngine2.Modules.Graphs.LineUtils.SmoothLine ( List< Vector3 >  source,
float  nearPointsThreshold,
float  noiseThreshold,
bool  raycastExtraPoints 
)
static

Smooths line from system noise values.

Parameters
sourceCollection of points to handle.

◆ SmoothLineCoroutine()

static IEnumerator Doloro.UIEngine2.Modules.Graphs.LineUtils.SmoothLineCoroutine ( List< Vector3 >  source,
float  nearPointsThreshold,
float  noiseThreshold,
bool  raycastExtraPoints,
Action< object[]>  onCompute,
params object[]  args 
)
static

Smooths line from system noise values.

Parameters
sourceCollection of points to handle.

◆ ToLineDistance()

static float Doloro.UIEngine2.Modules.Graphs.LineUtils.ToLineDistance ( Vector3  p0,
Vector3  p1,
Vector3  point 
)
static

Check distance from point to line.

Parameters
p0First segment point.
p1Second segment point.
pointWorld point to distance compute.
Returns
Normal distance from the point to the line.

◆ TrimNearPoints()

static void Doloro.UIEngine2.Modules.Graphs.LineUtils.TrimNearPoints ( List< Vector3 >  source,
float  threshold 
)
static

Trims the points that placed withing the distance threshold.

Parameters
sourceCollection of points to post processing.
thresholdDistance between points to consider as the same.

◆ TrimToLoopedPoints()

static void Doloro.UIEngine2.Modules.Graphs.LineUtils.TrimToLoopedPoints ( List< Vector3 >  source,
float  threshold = 0.005f 
)
static

Trims the segments of line that afterwards turns into the looped segment.

Parameters
sourceCollection of points to handle.
thresholdDistance between a point and segment to consider it as collided and demanded to be optimized..

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