Skia
2D Graphics Library

#include "include/core/SkRect.h"
#include "include/private/SkMacros.h"
#include "include/private/SkTo.h"
Go to the source code of this file.
Classes  
class  SkMatrix 
SkMatrix holds a 3x3 matrix for transforming coordinates. More...  
Enumerations  
enum  SkApplyPerspectiveClip { SkApplyPerspectiveClip::kNo, SkApplyPerspectiveClip::kYes } 
When we transform points through a matrix containing perspective (the bottom row is something other than 0,0,1), the bruteforce math can produce confusing results (since we might divide by 0, or a negative w value). More...  

strong 
When we transform points through a matrix containing perspective (the bottom row is something other than 0,0,1), the bruteforce math can produce confusing results (since we might divide by 0, or a negative w value).
By default, methods that map rects and paths will apply perspective clipping, but this can be changed by specifying kYes to those methods.
Enumerator  

kNo  Don't preclip the geometry before applying the (perspective) matrix. 
kYes  Do preclip the geometry before applying the (perspective) matrix. 