Метод | Описание | |
---|---|---|
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 | |
Результат |
public static ClosestPointOnLineSegmentToPoint ( |
||
point | ||
lineStart | ||
lineEnd | ||
Результат |
public static ClosestPointOnLineToPoint ( |
||
point | ||
linePointA | ||
linePointB | ||
Результат |
public static DistanceOfPointToLine ( |
||
ray | ray that specifies an infinite line | |
point | 3D point | |
Результат | float |
public static DistanceOfPointToLine ( |
||
point | ||
linePointA | ||
linePointB | ||
Результат | float |
public static DistanceOfPointToLineSegment ( |
||
point | ||
lineStart | ||
lineEnd | ||
Результат | float |
public static GetHorizontalFieldOfViewRadians ( ) : float | ||
Результат | float |
public static InRange ( |
||
vec | The vector to test | |
lower | The lower bounds | |
upper | The upper bounds | |
Результат | bool |
public static InRange ( |
||
vec | The vector to test | |
lower | The lower bounds | |
upper | The upper bounds | |
Результат | bool |
public static IsInFOV ( |
||
position | ||
Результат | bool |
public static NearestPointToLines ( |
||
p | ray that specifies a line | |
q | ray that specifies a line | |
Результат |
public static NearestPointToLinesLeastSquares ( IEnumerable |
||
rays | IEnumerable |
each ray specifies an infinite line |
Результат |
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 |
Результат |
public static QuaternionFromMatrix ( |
||
m | Input matrix to convert to quaternion | |
Результат |
public static Subtract ( |
||
a | matrix | |
b | matrix | |
Результат |
public static TestPlanesAABB ( |
||
planes | ||
planeMask | int | |
bounds | ||
entirelyInside | bool | |
Результат | bool |
public static ToTranslationRotation ( |
||
unityMtx | ||
translation | ||
rotation | ||
Результат | void |
public static TransformDirectionFromTo ( |
||
from | ||
to | ||
dirInFrom | ||
Результат |
public static TransformPointFromTo ( |
||
from | ||
to | ||
ptInFrom | ||
Результат |
public static TransformRayFromTo ( |
||
from | ||
to | ||
rayToConvert | ||
Результат |
public static TransformVectorFromTo ( |
||
from | ||
to | ||
vecInFrom | ||
Результат |
public static XYProject ( |
||
v | ||
Результат |
public static XZProject ( |
||
v | ||
Результат |
public static YZProject ( |
||
v | ||
Результат |