/// <summary> /// Gets the extrinsic transformation from this sensor stream to another sensor stream. /// </summary> /// <param name="other">The target sensor stream profile.</param> /// <param name="extrinsics"> /// The result structure specifying the extrinsic transformation between the two sensor streams. /// </param> public void GetExtrinsicsTo(StreamProfile other, out Extrinsics extrinsics) { if (other == null) { throw new ArgumentNullException(nameof(other)); } NativeMethods.rs2_get_extrinsics(handle, other.handle, out extrinsics, out IntPtr error); NativeHelper.ThrowExceptionForRsError(error); }
public void Open(StreamProfile profile) { NativeMethods.rs2_open(handle, profile.Handle, out IntPtr error); NativeHelper.ThrowExceptionForRsError(error); }
/// <summary> /// Gets the extrinsic transformation from this sensor stream to another sensor stream. /// </summary> /// <param name="other">The target sensor stream profile.</param> /// <returns>The extrinsic transformation between the two sensor streams.</returns> public Extrinsics GetExtrinsicsTo(StreamProfile other) { GetExtrinsicsTo(other, out Extrinsics extrinsics); return(extrinsics); }