//
//  ALTransFormFaceUtil.h
//  Gengmei
//
//  Created by Q14 on 2019/6/27.
//  Copyright © 2019 更美互动信息科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ALFaceInfoModel.h"
#import "GMFaceV3Model.h"
static const CGFloat templeWidthScale = 0.70;
static const CGFloat templeTopScale = 0.35;

@interface ALTransFormFaceUtil : NSObject
/**
 图片宽度放大到屏幕宽度
 @param faceModel f
 */
+ (GMFaceV3Model *)zoomFaceImagelScreenWidth:(GMFaceV3Model *)faceModel;

//旋转
+ (CGAffineTransform )rollTransformImageV:(GMFaceV3Model *)faceModel;

+ (GMFaceV3Model *)mapFaceModelToScreencCoordinates:(GMFaceV3Model *)faceModel aroundPoint:(CGPoint)standardPoint roate:(CGAffineTransform)roateTransform scale:(CGFloat)imageScale translate:(CGPoint)translate;

/**
 point指定位置放大平移缩放
 @param point 需要转换的数组point
 @param roate 旋转的CGAffineTransform
 @param imageScale 放大的比例 translate
 @param translate 平移的CGAffineTransform
 */
+ (CGPoint)transformPoint:(CGPoint)point aroundPoint:(CGPoint)standardPoint roate:(CGAffineTransform)roateTransform scale:(CGFloat)imageScale translate:(CGPoint)translate;
/**
 PointArr指定位置放大平移缩放
 @param array 需要转换的数组array
 @param roateTransform 旋转的CGAffineTransform
 @param imageScale 放大的比例 translate
 @param translate 平移的CGAffineTransform
 */
+ (NSArray<GMFaceCommonPositionModel> *)transformCommonPositionArray:(NSArray<GMFaceCommonPositionModel> *)array aroundPoint:(CGPoint)standardPoint roate:(CGAffineTransform)roateTransform scale:(CGFloat)imageScale translate:(CGPoint)translate;

/**
 Rect指定位置放大平移缩放
 @param array 需要转换的数组array
 @param roateTransform 旋转的CGAffineTransform
 @param imageScale 放大的比例 translate
 @param translate 平移的CGAffineTransform
 */
+ (ALFaceRectModel *)transformScaleRect:(ALFaceRectModel *)rect  aroundPoint:(CGPoint)standardPoint roate:(CGAffineTransform)roateTransform scale:(CGFloat)imageScale translate:(CGPoint)translate;

+ (NSDictionary *)readLocalFileWithName:(NSString *)name;
@end
