             setNeedsDisplay()
         }
     }
+    
+    /// How 'thick' the segment is. This is always the smaller value between length and breadth.
+    private var breadth: CGFloat = 5.0
+    
+    /// Length of the segment. It is always the longer value between length and breadth.
+    private var length: CGFloat = 25.0
     
     /// The side of triangle at each corner that is cutoff to give the 'tip' of the segment. Otherwise it is 1/15th of the length.
     private var cutoff: CGFloat { return length/10 }

    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func draw(_ rect: CGRect) {

        case .vertical:
            length = h
            breadth = w
        default:
            length = w
            breadth = h
        }
        
        super.init(frame: frame)
