float32 Rect::GetRealBottom() const { float32 realBottom(m_LeftBottom.y); realBottom = realBottom > m_LeftTop.y ? m_LeftTop.y : realBottom; realBottom = realBottom > m_RightBottom.y ? m_RightBottom.y : realBottom; realBottom = realBottom > m_RightTop.y ? m_RightTop.y : realBottom; return realBottom; }
void AsdkSmiley::setMouth( const AcGePoint3d& left, const AcGePoint3d& bottom, const AcGePoint3d& right ) { assertWriteEnabled(); AcGePoint3d realLeft( left ), realBottom( bottom ), realRight( right ); double topY = center()[Y] + eyesHeight() - eyeSize(); double diff = 0.0; if (( left[Y] - topY ) > diff ){ diff = left[Y] - topY; } if (( bottom[Y] - topY ) > diff ){ diff = bottom[Y] - topY; } if (( right[Y] - topY ) > diff ){ diff = right[Y] - topY; } AcGeVector3d vec( 0, diff, 0 ); mmoutharc.set( realLeft - vec, realBottom - vec, realRight - vec ); recordGraphicsModified(); }