MCPcopy Create free account
hub / github.com/cinder/Cinder / DrawTransform

Method DrawTransform

samples/FallingGears/src/Box2dUtils.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void DebugDraw::DrawTransform( const b2Transform &xf )
83{
84 gl::color( 1, 1, 0 );
85 gl::drawLine( toCinder( xf.p ), toCinder( xf.p + TRANSFORM_AXIS_SCALE * xf.q.GetXAxis() ) );
86
87 gl::color( 0, 1, 1 );
88 gl::drawLine( toCinder( xf.p ), toCinder( xf.p + TRANSFORM_AXIS_SCALE * xf.q.GetYAxis() ) );
89}
90
91} // namespace box2d

Callers 1

DrawDebugDataMethod · 0.80

Calls 5

toCinderFunction · 0.85
GetXAxisMethod · 0.80
GetYAxisMethod · 0.80
colorFunction · 0.50
drawLineFunction · 0.50

Tested by

no test coverage detected