Ignore:
Timestamp:
Jan 27, 2012, 9:05:03 AM (10 years ago)
Author:
sam
Message:

math: try to implement the magic getter/setter pattern. BREAKS BUILD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/matrix.cpp

    r1035 r1136  
    122122
    123123        vec3 b(a1, 0.0f);
    124         vec2 a2(b.xy());
     124        vec2 a2(b.xy);
    125125        LOLUNIT_ASSERT_EQUAL(b.x, a1.x);
    126126        LOLUNIT_ASSERT_EQUAL(b.y, a1.y);
     
    129129
    130130        vec4 c(a1, 0.0f, 0.0f);
    131         vec2 a3(c.xy());
     131        vec2 a3(c.xy);
    132132        LOLUNIT_ASSERT_EQUAL(c.x, a1.x);
    133133        LOLUNIT_ASSERT_EQUAL(c.y, a1.y);
Note: See TracChangeset for help on using the changeset viewer.