Example #1
0
def test_scale_list_01( ):
    t = [PA([(1, 2)]), PU([(3, 4)])]
    scale(t, 1.5)
    assert t[0].xy == CoordinateArray([(1.5, 3)])
    assert t[1].xy == CoordinateArray([(4.5, 6)])
Example #2
0
def test_scale_RR( ):
    '''Scale works on single RR.'''
    t = RR((1, 2))
    scale(t, 1.5)
    assert t.xy == Coordinate(1.5, 3.0)
Example #3
0
def test_scale_CI( ):
    '''Scale works on single CI.'''
    t = CI(1, 20)
    scale(t, 1.5)
    assert t.radius == 1.5
    assert t.chordangle == 20 ### chordangle is unmodified
Example #4
0
def test_scale_PR( ):
    '''Scale works on single PR.'''
    t = PR([(1, 2)])
    scale(t, 1.5)
    assert t.xy == CoordinateArray([(1.5, 3.0)])
Example #5
0
def test_scale_EA( ):
    '''Scale works on single EA.'''
    t = EA((1, 2))
    scale(t, 1.5)
    assert t.xy == Coordinate(1.5, 3.0)