public void AddPair(float dataPoint, Color color)
 {
     DataPairs.Add(new GPUDataPair(dataPoint, color));
     TRS = new Matrix4x4Wrapper();
     Shrink();
     UpdateStats(dataPoint);
 }
        public void AddPair(float dataPoint, Color color, Matrix4x4Wrapper trs)
        {
            AddPair(dataPoint, color);
            IsWorldSpace = true;
            TRS          = trs;
            Rectangle    = new Vector4(0, 0, 1, 1);

            UpdateUI();
        }
        public void AddPair(float dataPoint, Color color, Rect rectangle)
        {
            // each graph is located in a specify position
            Rectangle = new Vector4(rectangle.x / Screen.width, rectangle.y / Screen.height, rectangle.width / Screen.width, rectangle.height / Screen.height);

            DataPairs.Add(new GPUDataPair(dataPoint, color));
            TRS = new Matrix4x4Wrapper();

            Shrink();
            UpdateStats(dataPoint);
            UpdateUI();
        }
 // world space plot
 public void Plot(string key, float value, Color color, Matrix4x4Wrapper trs)
 {
     Retrieve(key, value).AddPair(value, color, trs);
 }
Ejemplo n.º 5
0
 // world space
 public void Plot(string key, float value, Matrix4x4Wrapper trs)
 {
     Retrieve(key).AddPair(value, trs);
 }