Emotiv.EdkDll.IS_FacialExpressionGetEyeLocation C# (CSharp) Method

IS_FacialExpressionGetEyeLocation() public static method

public static IS_FacialExpressionGetEyeLocation ( IntPtr state, System.Single &x, System.Single &y ) : void
state System.IntPtr
x System.Single
y System.Single
return void
        public static void IS_FacialExpressionGetEyeLocation(IntPtr state, out Single x, out Single y)
        {
            Unmanaged_IS_FacialExpressionGetEyeLocation(state, out x, out y);
        }

Usage Example

コード例 #1
0
 /// <summary>
 /// Query the eyes position of the user
 /// </summary>
 /// <remarks>
 /// The horizontal and vertical position of the eyes are stored in the parameter x and y
 /// respectively. They are floating point values ranging from -1.0 to 1.0.
 ///
 /// For horizontal position, -1.0 indicates that the user is looking left while
 /// 1.0 indicates that the user is looking right.
 ///
 /// For vertical position, -1.0 indicates that the user is looking down while
 /// 1.0 indicatest that the user is looking up.
 ///
 /// This function assumes that both eyes have the same horizontal or vertical positions.
 /// (i.e. no cross eyes)
 /// </remarks>
 /// <param name="x">the horizontal position of the eyes</param>
 /// <param name="y">the veritcal position of the eyes</param>
 public void FacialExpressionGetEyeLocation(out Single x, out Single y)
 {
     EdkDll.IS_FacialExpressionGetEyeLocation(hEmoState, out x, out y);
 }
EdkDll