C# Class Kinect.Toolbox.Tools

ファイルを表示 Open project: NIAEFEUP/Kommando

Public Methods

Method Description
ConvertSkeletonPointToScreen ( Microsoft.Kinect.KinectSensor sensor, Microsoft.Kinect.SkeletonPoint position ) : Vector2

This utility method converts a skeleton point to a 2D space vector.

IsPolygonColliding ( Polygon p1, Polygon p2 ) : bool

Detects collisions between two polygons.

Private Methods

Method Description
ComputeDterminant ( Vector vector1, Vector vector2 ) : double

Computes the determinant of two vectors.

IsPointInCollection ( PointCollection area, System.Point point ) : bool

Determines if a point is contained inside an area.

IsSegmentIntersecting ( System.Point seg1Start, System.Point seg1End, System.Point seg2Start, System.Point seg2End ) : bool

Determines if two line segments intersect each other.

Method Details

ConvertSkeletonPointToScreen() public static method

This utility method converts a skeleton point to a 2D space vector.
public static ConvertSkeletonPointToScreen ( Microsoft.Kinect.KinectSensor sensor, Microsoft.Kinect.SkeletonPoint position ) : Vector2
sensor Microsoft.Kinect.KinectSensor Kinect sensor
position Microsoft.Kinect.SkeletonPoint Position of the joint
return Vector2

IsPolygonColliding() public static method

Detects collisions between two polygons.
public static IsPolygonColliding ( Polygon p1, Polygon p2 ) : bool
p1 Polygon First polygon
p2 Polygon Second polygon
return bool