init - 初始化项目
This commit is contained in:
27
modules/core/misc/objc/common/MinMaxLocResult.mm
Normal file
27
modules/core/misc/objc/common/MinMaxLocResult.mm
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// MinMaxLocResult.m
|
||||
//
|
||||
// Created by Giles Payne on 2019/12/28.
|
||||
//
|
||||
|
||||
#import "MinMaxLocResult.h"
|
||||
#import "Point2i.h"
|
||||
|
||||
@implementation MinMaxLocResult
|
||||
|
||||
- (instancetype)init {
|
||||
return [self initWithMinval:0 maxVal:0 minLoc:[Point2i new] maxLoc:[Point2i new]];
|
||||
}
|
||||
|
||||
- (instancetype)initWithMinval:(double)minVal maxVal:(double)maxVal minLoc:(Point2i*)minLoc maxLoc:(Point2i*)maxLoc {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
self.minVal = minVal;
|
||||
self.maxVal = maxVal;
|
||||
self.minLoc = minLoc;
|
||||
self.maxLoc = maxLoc;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user