API reference

RANSACVelocity Class

A helper class that uses and underlying RandomSampleConsensus to select the best pair of linear and angular velocities from a buffer of recent timed poses.

Constructors

RANSACVelocity ( samplesCount , samplesDeadZone , minHighConfidenceSamples )
Signature
Oculus.Interaction.Throw.RANSACVelocity.RANSACVelocity(int samplesCount=8, int samplesDeadZone=2, int minHighConfidenceSamples=2)
Parameters
samplesCount: int
samplesDeadZone: int
minHighConfidenceSamples: int

Protected Methods

GetSortedTimePoses ( idx1 , idx2 , older , younger )
Signature
void Oculus.Interaction.Throw.RANSACVelocity.GetSortedTimePoses(int idx1, int idx2, out TimedPose older, out TimedPose younger)
Parameters
idx1: int
idx2: int
older: out TimedPose
younger: out TimedPose
Returns
void
PositionOffset ( youngerPose , olderPose )
Signature
virtual Vector3 Oculus.Interaction.Throw.RANSACVelocity.PositionOffset(Pose youngerPose, Pose olderPose)
Parameters
youngerPose: Pose
olderPose: Pose
Returns
Vector3

Methods

GetVelocities ( velocity , torque )
Signature
void Oculus.Interaction.Throw.RANSACVelocity.GetVelocities(out Vector3 velocity, out Vector3 torque)
Parameters
velocity: out Vector3
torque: out Vector3
Returns
void
Initialize ( pose , time )
Signature
void Oculus.Interaction.Throw.RANSACVelocity.Initialize(Pose pose, float time)
Parameters
pose: Pose
time: float
Returns
void
Process ( pose , time , isHighConfidence )
Signature
void Oculus.Interaction.Throw.RANSACVelocity.Process(Pose pose, float time, bool isHighConfidence=true)
Parameters
pose: Pose
time: float
isHighConfidence: bool
Returns
void

Protected Static Methods

GetTorque ( older , younger )
Signature
static Vector3 Oculus.Interaction.Throw.RANSACVelocity.GetTorque(TimedPose older, TimedPose younger)
Parameters
older: TimedPose
younger: TimedPose
Returns
Vector3

Inner Struct

TimedPose Struct

Constructors

TimedPose ( time , pose )
Signature
Oculus.Interaction.Throw.RANSACVelocity.TimedPose.TimedPose(float time, Pose pose)
Parameters
time: float
pose: Pose

Fields

pose : Pose
Signature
Pose Oculus.Interaction.Throw.RANSACVelocity.TimedPose.pose
time : float
Signature
float Oculus.Interaction.Throw.RANSACVelocity.TimedPose.time