ColorGlove.Pooled.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            string message = String.Format("({0},{1},{2},{3})", gesture_, center_.X, center_.Y, center_depth_);
            return message;
        }

Usage Example

 // Writes the gesture to the sockets. Uses gestures.ToString() method
 private static void SendToSockets(Pooled gesture, ProcessorState state)
 {
     string message = gesture.ToString();
     Console.WriteLine("Sending: {0}", message);
     foreach (var socket in state.all_sockets_.ToList()) socket.Send(message);
 }