A Check to determine whether a point fits inside a line segment.
More...
|
| LineCheck (Vector3 firstPosition, Vector3 secondPosition, float tolerance=0.4f) |
| Create a Line Check used to determine whether a point fits inside the defined line segment. More...
|
|
override float | CheckPasses (GTransform g) |
| Determine whether a single GTransform fits inside the area defined by the line segment More...
|
|
A Check to determine whether a point fits inside a line segment.
Gestures.LineCheck.LineCheck |
( |
Vector3 |
firstPosition, |
|
|
Vector3 |
secondPosition, |
|
|
float |
tolerance = 0.4f |
|
) |
| |
|
inline |
Create a Line Check used to determine whether a point fits inside the defined line segment.
- Parameters
-
firstPosition | The first point of the line segment. |
secondPosition | The second point of the line segment. |
tolerance | Distance from the line considered to be on the line. |
override float Gestures.LineCheck.CheckPasses |
( |
GTransform |
g | ) |
|
|
inlinevirtual |
Determine whether a single GTransform fits inside the area defined by the line segment
- Parameters
-
- Returns
- Returns a float (between 0 and 1) representing the distance from the center of the line, or -1 if the check fails
Implements Gestures.Check.
The documentation for this class was generated from the following file: