mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 11:29:23 +00:00
Logic rewrite
Update to LeapCSharp 5.13.1 Not tested in VR
This commit is contained in:
parent
a41f17af82
commit
3609500959
21 changed files with 566 additions and 103 deletions
16
ml_lme/vendor/LeapCSharp/Image.cs
vendored
16
ml_lme/vendor/LeapCSharp/Image.cs
vendored
|
@ -154,6 +154,11 @@ namespace Leap
|
|||
return imageData(camera).DistortionData.Data;
|
||||
}
|
||||
|
||||
[System.Obsolete("This signature will be removed in the next major version of the plugin. Use the one with Vector3 instead.")]
|
||||
public Vector PixelToRectilinear(CameraType camera, Vector pixel)
|
||||
{
|
||||
return Connection.GetConnection().PixelToRectilinear(camera, pixel);
|
||||
}
|
||||
/// <summary>
|
||||
/// Provides the corrected camera ray intercepting the specified point on the image.
|
||||
///
|
||||
|
@ -172,13 +177,17 @@ namespace Leap
|
|||
/// in between the time the image was received and the time this function is called.
|
||||
///
|
||||
/// Note, this function was formerly named Rectify().
|
||||
/// @since 2.1.0
|
||||
/// </summary>
|
||||
public Vector PixelToRectilinear(CameraType camera, Vector pixel)
|
||||
public UnityEngine.Vector3 PixelToRectilinear(CameraType camera, UnityEngine.Vector3 pixel)
|
||||
{
|
||||
return Connection.GetConnection().PixelToRectilinear(camera, pixel);
|
||||
}
|
||||
|
||||
[System.Obsolete("This signature will be removed in the next major version of the plugin. Use the one with Vector3 instead.")]
|
||||
public Vector RectilinearToPixel(CameraType camera, Vector ray)
|
||||
{
|
||||
return Connection.GetConnection().RectilinearToPixel(camera, ray);
|
||||
}
|
||||
/// <summary>
|
||||
/// Provides the point in the image corresponding to a ray projecting
|
||||
/// from the camera.
|
||||
|
@ -202,9 +211,8 @@ namespace Leap
|
|||
/// in between the time the image was received and the time this function is called.
|
||||
///
|
||||
/// Note, this function was formerly named Warp().
|
||||
/// @since 2.1.0
|
||||
/// </summary>
|
||||
public Vector RectilinearToPixel(CameraType camera, Vector ray)
|
||||
public UnityEngine.Vector3 RectilinearToPixel(CameraType camera, UnityEngine.Vector3 ray)
|
||||
{
|
||||
return Connection.GetConnection().RectilinearToPixel(camera, ray);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue