Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BOOL ellipse_degnerated(const DC *dc, double width, double height)
- {
- const XFORM *xform = &dc->xformVport2World;
- double wsq = (width / 2) * (width / 2);
- double hsq = (height / 2) * (height / 2);
- const double a = (hsq * xform->eM11 * xform->eM11) + (wsq * xform->eM12 * xform->eM12);
- const double d = (hsq * wsq);
- return sqrt(d / a) == 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment