Initialize the canvas geometry as an Objective-C++ instance member
这个提交包含在:
1 父节点
5ca307414c
当前提交
320f4c5f91
2 个文件已更改
+2
-2
没有与搜索条件相匹配的文件
@@ -13,7 +13,7 @@ inline double DYLevelDelta(CGPoint first, CGPoint second, double aspect, bool ve
|
||||
struct DYLevelTransform {
|
||||
double aspect, cosine, sine, zoom;
|
||||
|
||||
DYLevelTransform(double angle, double displayAspect)
|
||||
DYLevelTransform(double angle = 0, double displayAspect = 1)
|
||||
: aspect(displayAspect), cosine(std::cos(angle)), sine(std::sin(angle)),
|
||||
zoom(std::max(1., std::abs(cosine) + std::abs(sine) * std::max(aspect, 1. / aspect))) {}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
BOOL _stampHasSource,_stampDragging,_stampSaving,_stampNeedsRedraw;
|
||||
NSPoint _stampSource,_stampStart,_stampEnd;
|
||||
NSString *_stampFailure,*_levelFailure;
|
||||
DYLevelTransform _level{0,1};
|
||||
DYLevelTransform _level;
|
||||
double _levelAngle;
|
||||
NSInteger _levelMode;
|
||||
CMTime _levelTime;
|
||||
|
||||
在新工单中引用
屏蔽一个用户