|
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...
|
|
◆ 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
-
p0 | First point that defines the world space rect. |
p1 | Second point that defines the world space rect. |
point | Point 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
-
source | Collection 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
-
source | Collection of points to handle. |
threshold | Distance 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
-
source | Collection 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
-
source | Collection 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
-
p0 | First segment point. |
p1 | Second segment point. |
point | World 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
-
source | Collection of points to post processing. |
threshold | Distance 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
-
source | Collection of points to handle. |
threshold | Distance 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:
- D:/Work/GitHub/DGDK22/Assets/Tauri Interactive/Doloro-GDK/Doloro-UI-2-Graphs/Runtime/API/LineUtils.cs