Esempio n. 1
0
 public MarkerLine(MarkerNode arg_startpoint, MarkerNode arg_endpoint)
 {
     startpoint = arg_startpoint;
     endpoint = arg_endpoint;
     line_color = endpoint.line_color;
 }
Esempio n. 2
0
 void DoubleCheckSubMarkers()
 {
     if (startpoint == null) { startpoint = DefaultMarkerNode( new Vector2(0,0) ); }
     if (endpoint == null) { endpoint = DefaultMarkerNode( new Vector2(0,0) ); }
 }
Esempio n. 3
0
        public MarkerLine(Vector2 line_start, Vector2 line_end, Color color)
        {
            line_color = color;

            startpoint = DefaultMarkerNode(line_start);
            endpoint = DefaultMarkerNode(line_end);

            startpoint.fill_color = color;
            endpoint.fill_color = color;   
        }