| 51 | return s_.get( id ).z.z; |
| 52 | } |
| 53 | void ConeObject::setHeight( float height, ViewportId id /*= {}*/ ) |
| 54 | { |
| 55 | auto direction = getDirection( id ); |
| 56 | auto currentXf = xf( id ); |
| 57 | auto radius = getNormalizedRadius_( id ); |
| 58 | currentXf.A = getConeRotationMatrix( direction ) * Matrix3f::scale( radius * height, radius * height, height ); |
| 59 | setXf( currentXf, id ); |
| 60 | } |
| 61 | |
| 62 | |
| 63 | float ConeObject::getNormalizedRadius_( ViewportId id /*= {}*/ ) const |
no test coverage detected