Пример #1
0
 /**			
     @brief Set rotation from Spherical linear interpolation between two rotations.
     @param[in]  startRotation - start rotation
     @param[in]  endRotation - end rotation
     @param[in]  factor - interpolation factor
 */	
 public void SetFromSlerp(Single factor, PXCMRotation startRotation, PXCMRotation endRotation)
 {
     PXCMRotation_SetFromSlerp(instance, factor, startRotation.instance, endRotation.instance);
 }
Пример #2
0
    /**			
        @brief Set rotation based on Euler angles representation.
        Euler angles are a 3D point that represents rotation in 3D. Each variable is the angle 
        of rotation around a certain axis (x/y/z). 
		
        @param[in] eulerAngles the rotation in Euler angles representation.
        @param[in] order the order in which we set the rotation (ROLL_PITCH_YAW as default).
    */		
    public void SetFromEulerAngles(PXCMPoint3DF32 eulerAngles, PXCMRotation.EulerOrder order)
    {
        PXCMRotation_SetFromEulerAngles(instance, eulerAngles, order); 
    }
Пример #3
0
	// Useful functions
    /**			
        @brief Set rotation as a concatenation of current rotation and the given Rotation.
        @param[in]  rotation - the given rotation
    */	
	public void Rotate(PXCMRotation rotation) {
        PXCMRotation_Rotate(instance, rotation.instance);
    }
Пример #4
0
 /**
  *  @brief Set rotation from Spherical linear interpolation between two rotations.
  *  @param[in]  startRotation - start rotation
  *  @param[in]  endRotation - end rotation
  *  @param[in]  factor - interpolation factor
  */
 public void SetFromSlerp(Single factor, PXCMRotation startRotation, PXCMRotation endRotation)
 {
     PXCMRotation_SetFromSlerp(instance, factor, startRotation.instance, endRotation.instance);
 }
Пример #5
0
    // Useful functions

    /**
     *  @brief Set rotation as a concatenation of current rotation and the given Rotation.
     *  @param[in]  rotation - the given rotation
     */
    public void Rotate(PXCMRotation rotation)
    {
        PXCMRotation_Rotate(instance, rotation.instance);
    }
Пример #6
0
 internal extern static void PXCMRotation_SetFromEulerAngles(IntPtr instance, PXCMPoint3DF32 eulerAngles, PXCMRotation.EulerOrder order);