Méthode | Description | |
---|---|---|
Add ( |
Element-wise addition of two Matrix4x4s - extension method
|
|
ClosestPointOnLineSegmentToPoint ( |
||
ClosestPointOnLineToPoint ( |
||
DistanceOfPointToLine ( |
find unsigned distance of 3D point to an infinite line
|
|
DistanceOfPointToLine ( |
Returns the distance between a point and an infinite line defined by two points; linePointA and linePointB
|
|
DistanceOfPointToLineSegment ( |
||
GetHorizontalFieldOfViewRadians ( ) : float |
Get the horizontal FOV from the stereo camera
|
|
InRange ( |
Tests component-wise if a Vector2 is in a given range
|
|
InRange ( |
Tests component-wise if a Vector3 is in a given range
|
|
IsInFOV ( |
Returns if a point will be rendered on the screen in either eye
|
|
NearestPointToLines ( |
Find 3D point that minimizes distance to 2 lines, midpoint of the shortest perpendicular line segment between them
|
|
NearestPointToLinesLeastSquares ( IEnumerable |
Find 3D point that minimizes distance to a set of 2 or more lines
|
|
NearestPointToLinesRANSAC ( List |
Find 3D point that minimizes distance to a set of 2 or more lines, ignoring outliers
|
|
QuaternionFromMatrix ( |
Creates a quaternion containing the rotation from the input matrix.
|
|
Subtract ( |
Element-wise subtraction of two Matrix4x4s - extension method
|
|
TestPlanesAABB ( |
||
ToTranslationRotation ( |
Extract the translation and rotation components of a Unity matrix
|
|
TransformDirectionFromTo ( |
Takes a direction in the coordinate space specified by the "from" transform and transforms it to be the correct direction in the coordinate space specified by the "to" transform applies rotation only, no translation or scale
|
|
TransformPointFromTo ( |
Takes a point in the coordinate space specified by the "from" transform and transforms it to be the correct point in the coordinate space specified by the "to" transform applies rotation, scale and translation
|
|
TransformRayFromTo ( |
Takes a ray in the coordinate space specified by the "from" transform and transforms it to be the correct ray in the coordinate space specified by the "to" transform
|
|
TransformVectorFromTo ( |
Takes a vectpr in the coordinate space specified by the "from" transform and transforms it to be the correct direction in the coordinate space specified by the "to" transform applies rotation and scale, no translation
|
|
XYProject ( |
Project vector onto XY plane
|
|
XZProject ( |
Project vector onto XZ plane
|
|
YZProject ( |
Project vector onto YZ plane
|
public static Add ( |
||
a | matrix | |
b | matrix | |
Résultat |
public static ClosestPointOnLineSegmentToPoint ( |
||
point | ||
lineStart | ||
lineEnd | ||
Résultat |
public static ClosestPointOnLineToPoint ( |
||
point | ||
linePointA | ||
linePointB | ||
Résultat |
public static DistanceOfPointToLine ( |
||
ray | ray that specifies an infinite line | |
point | 3D point | |
Résultat | float |
public static DistanceOfPointToLine ( |
||
point | ||
linePointA | ||
linePointB | ||
Résultat | float |
public static DistanceOfPointToLineSegment ( |
||
point | ||
lineStart | ||
lineEnd | ||
Résultat | float |
public static GetHorizontalFieldOfViewRadians ( ) : float | ||
Résultat | float |
public static InRange ( |
||
vec | The vector to test | |
lower | The lower bounds | |
upper | The upper bounds | |
Résultat | bool |
public static InRange ( |
||
vec | The vector to test | |
lower | The lower bounds | |
upper | The upper bounds | |
Résultat | bool |
public static IsInFOV ( |
||
position | ||
Résultat | bool |
public static NearestPointToLines ( |
||
p | ray that specifies a line | |
q | ray that specifies a line | |
Résultat |
public static NearestPointToLinesLeastSquares ( IEnumerable |
||
rays | IEnumerable |
each ray specifies an infinite line |
Résultat |
public static NearestPointToLinesRANSAC ( List |
||
rays | List |
list of rays, each specifying a line, must have at least 1 |
ransac_iterations | int | number of iterations: log(1-p)/log(1-(1-E)^s) /// where p is probability of at least one sample containing s points is all inliers /// E is proportion of outliers (1-ransac_ratio) /// e.g. p=0.999, ransac_ratio=0.54, s=2 ==> log(0.001)/(log(1-0.54^2) = 20 /// |
ransac_threshold | float | minimum distance from point to line for a line to be considered an inlier |
numActualInliers | int | return number of inliers: lines that are within ransac_threshold of nearest point |
Résultat |
public static QuaternionFromMatrix ( |
||
m | Input matrix to convert to quaternion | |
Résultat |
public static Subtract ( |
||
a | matrix | |
b | matrix | |
Résultat |
public static TestPlanesAABB ( |
||
planes | ||
planeMask | int | |
bounds | ||
entirelyInside | bool | |
Résultat | bool |
public static ToTranslationRotation ( |
||
unityMtx | ||
translation | ||
rotation | ||
Résultat | void |
public static TransformDirectionFromTo ( |
||
from | ||
to | ||
dirInFrom | ||
Résultat |
public static TransformPointFromTo ( |
||
from | ||
to | ||
ptInFrom | ||
Résultat |
public static TransformRayFromTo ( |
||
from | ||
to | ||
rayToConvert | ||
Résultat |
public static TransformVectorFromTo ( |
||
from | ||
to | ||
vecInFrom | ||
Résultat |
public static XYProject ( |
||
v | ||
Résultat |
public static XZProject ( |
||
v | ||
Résultat |
public static YZProject ( |
||
v | ||
Résultat |