public Frame(long id, long timestamp, float fps, InteractionBox interactionBox) { _id = id; _timestamp = timestamp; _fps = fps; _isValid = true; _fingers = new FingerList(15); _hands = new HandList(3); _trackedQuad = new TrackedQuad(); InteractionBox = interactionBox; }
public TrackedQuad makeQuad(ref LEAP_TRACKED_QUAD_EVENT quadMsg) { TrackedQuad quad = new TrackedQuad( quadMsg.width, quadMsg.height, quadMsg.resolutionX, quadMsg.resolutionY, quadMsg.visible != 0, quadMsg.position.ToLeapVector(), quadMsg.orientation.ToLeapMatrix(), quadMsg.info.frame_id ); return quad; }
/** * Compares quad objects for equality. * @since 2.2.6 */ public bool Equals(TrackedQuad other) { return(this == other); }
public TrackedQuadEventArgs(TrackedQuad quad) : base(LeapEvent.EVENT_TRACKED_QUAD) { trackedQuad = quad; }
/** * Compares quad objects for equality. * @since 2.2.6 */ public bool Equals(TrackedQuad other) { return this == other; }
/** * Constructs a Frame object. * * Frame instances created with this constructor are invalid. * Get valid Frame objects by calling the Controller::frame() function. * * \include Frame_Frame.txt * * The only time you should use this constructor is before deserializing * serialized frame data. Call ``Frame::deserialize(string)`` to recreate * a saved Frame. * * @since 1.0 */ public Frame() { _fingers = new FingerList(15); _hands = new HandList(3); _trackedQuad = new TrackedQuad(); }