C# Class SitPerfect.SkeletonExtensions

显示文件 Open project: janmechtel/sitperfect

Public Methods

Method Description
CalculateAngleBetweenJoints ( Microsoft.Kinect.Joint joint1, Microsoft.Kinect.Joint joint2 ) : double

Calculates the angle between two joings

CalculateAngleBetweenTwoPoints ( float X1, float Y1, float X2, float Y2 ) : double

Calculates the angle between two points

GetAngleHeadShoulderCenter ( this skel ) : double
GetAngleHeadShoulderRight ( this skel ) : double

Method Details

CalculateAngleBetweenJoints() public static method

Calculates the angle between two joings
public static CalculateAngleBetweenJoints ( Microsoft.Kinect.Joint joint1, Microsoft.Kinect.Joint joint2 ) : double
joint1 Microsoft.Kinect.Joint The first joint
joint2 Microsoft.Kinect.Joint The second joint
return double

CalculateAngleBetweenTwoPoints() public static method

Calculates the angle between two points
public static CalculateAngleBetweenTwoPoints ( float X1, float Y1, float X2, float Y2 ) : double
X1 float The X coordinate of the first point
Y1 float The Y coordinate of the first point
X2 float The X coordinate of the second point
Y2 float The Y coordinate of the second point
return double

GetAngleHeadShoulderCenter() public static method

public static GetAngleHeadShoulderCenter ( this skel ) : double
skel this
return double

GetAngleHeadShoulderRight() public static method

public static GetAngleHeadShoulderRight ( this skel ) : double
skel this
return double