https://developer.apple.com/documentation/simd/simd_float4x4

 

view 이동 구현

 

let xPanCake = Float( (lastPanLocation.x - pointInView.x) / self.mainView.bounds.width * 2)

            let yPanCake = Float( (lastPanLocation.y - pointInView.y) / self.mainView.bounds.height * 2)

            print("\(xPanCake) x, \(yPanCake) y")

            myViewPosition = simd_float3(xPanCake, -yPanCake, 2.0) * 0.8

            myView.transform = float4x4(rotationAroundAxis: simd_float3(x: 0, y: 1, z: 1), by: Float.pi) * float4x4(translationBy: myViewPosition)

*2는 drag 와 실제 이동 비율            

    0.8 0.5 조정하면 확대 배율 조절이 된다. 애플 마우스 스크롤 처럼 상하 드래그 반전을 위해서는 -yPanCake에서 - 곱하면 된다.( 빼라는 이야기)

 

소스 난독화를 위해 코드를 대부분 합치는 것이 좋다. 가령 *2 * -2 등으로... 로그는 당연히 지우고. 내가 최근 7년간 프리랜서에게 받은 프로젝트 중에

로그가 제대로 찍히는 프로젝트는 없었다. 물론, 초창기 프리 개발자들은 착했다. 누구나가 다시 이어갈 있게. 그러나 관리자들이 개발자를 소모품 취급하면서

유명한 한빛 출판사에서도 유지보수 어렵게 코딩하는 법이란 책도 나왔다.

 

커널 개발과 3D 개발은 부가가치가 높은 룰을 지켜줘야지.

어차피 떨어져 나갈 놈들은 배울 필요가 없다. 나중에 자기는 하지도 못하면서 개발자 괴롭힐게 뻔해서.

 

나의 정신이 널리 퍼지길... 대학교에서 하는 처럼, 타짜 영화처럼 자격이 놈들만 받자.

 

건강 망가진 40 개발자가 .

 

'진행 프로젝트 > [진행] 개발 팁 "줘볼까?"' 카테고리의 다른 글

App Store 정보 18.Dec.2020  (0) 2020.12.18
previousPinchRecogScale  (0) 2020.12.14
pkg mng system. brew -> port  (0) 2020.11.27
#define to let  (0) 2020.11.26
drawrect  (0) 2020.11.25

App Store Connect 연휴 일정: 12월 23일~12월 27일

연휴 기간을 대비하여 앱이 최신 버전인지 확인하십시오. 태평양 표준시 기준으로 12월 23일부터 27일까지 새로운 앱과 앱 업데이트를 허용하지 않으므로 출시하려는 항목은 사전에 계획하여 제출하고 승인을 받아야 합니다. 기타 App Store Connect 기능은 계속 사용할 수 있습니다.

 

  • App Store 중소 규모 개발사 지원 프로그램

    지금 신규 App Store 중소 규모 개발사 지원 프로그램에 등록할 수 있습니다. 유료 앱과 앱 내 구입 수수료를 15% 줄여주는 이 프로그램은 사업에 더 많은 리소스를 투자할 수 있도록 해주어 훌륭한 앱을 계속해서 제작할 수 있습니다. 추가 정보

 

 

Paid Applications Agreement

Have you reviewed and accepted the Paid Applications Agreement (Schedule 2 to the Apple Developer Program License Agreement) posted December 2020, in App Store Connect?

No, I have not accepted.Yes, I have accepted.

Associated Developer Accounts

To ensure that all participants are fully eligible as small businesses, you’ll need to list all of your Associated Developer Accounts. An Associated Developer Account is an Apple Developer Program account that you own or control or an Apple Developer Program account that owns or controls your account.

To help determine if you have this type of an account, answer the following:

Do you have majority (over 50%) corporate, individual, or partnership interest in the ownership or shares of another Apple Developer Program member account?

NoYes

Does another Apple Developer Program member have majority (over 50%) corporate, individual, or partnership interest in the ownership or shares of your account?

NoYes

Do you have ultimate decision-making authority over another Apple Developer Program member account?

NoYes

Does another Apple Developer Program member have ultimate decision-making authority over your account?

NoYes

To the best of your knowledge, you and your Associated Developer Accounts earned no more than 1,000,000 USD in total proceeds (sales net of Apple’s commission and certain taxes and adjustments) during the twelve (12) fiscal months occurring in the 2020 calendar year. You further acknowledge that the information provided above is accurate, and providing false or inaccurate information is grounds for disqualification, termination, and forfeiture of payment.

'진행 프로젝트 > [진행] 개발 팁 "줘볼까?"' 카테고리의 다른 글

simd_float4x4  (0) 2021.01.14
previousPinchRecogScale  (0) 2020.12.14
pkg mng system. brew -> port  (0) 2020.11.27
#define to let  (0) 2020.11.26
drawrect  (0) 2020.11.25

//  Converted to Swift 5.3 by Swiftify v5.3.18369 - https://swiftify.com/

if recognizer.state == began {

 

    recognizer.scale = recognizer.scale + previousPinchRecogScale

} else if recognizer.state == changed {

 

    if recognizer.scale > 5 {

        recognizer.scale = 5

    }

 

    if recognizer.scale < 0.7 {

        recognizer.scale = 0.7

    }

 

    va1 =

    ((6 - recognizer.scale) * 27.93)

 

    setViewAngle(angle:va1)

} else if recognizer.state == ended {

 

    previousPinchRecogScale = recognizer.scale

}

 

-0=-0=-0-=0=-0-=0=-0-=0=-0-=0-=0-=0=-0=-0-=0=-0=-0=-0=-0=-0=

 

    var previousPinchRecogScale : CGFloat = 0.0

 

 

      if(recognizer.state == .began) {

            recognizer.scale = recognizer.scale + previousPinchRecogScale

        } else if(recognizer.state == .changed) {

            if(recognizer.scale > 5) { recognizer.scale = 5 }

            if(recognizer.scale < 0.7) { recognizer.scale = 0.7 }

            va1 = Float((6 - recognizer.scale) * 27.93)

            setViewAngle(angle: va1)

        } else if(recognizer.state == .ended) {

            previousPinchRecogScale = recognizer.scale

        }

'진행 프로젝트 > [진행] 개발 팁 &amp;amp;amp;quot;줘볼까?&amp;amp;amp;quot;' 카테고리의 다른 글

simd_float4x4  (0) 2021.01.14
App Store 정보 18.Dec.2020  (0) 2020.12.18
pkg mng system. brew -> port  (0) 2020.11.27
#define to let  (0) 2020.11.26
drawrect  (0) 2020.11.25

www.macports.org/install.php

 

The MacPorts Project -- Download & Installation

Quickstart Install Xcode and the Xcode Command Line Tools Agree to Xcode license in Terminal: sudo xcodebuild -license Install MacPorts for your version of the Mac operating system: Installing MacPorts MacPorts version 2.6.4 is available in various formats

www.macports.org

sudo port load rsync

brew upgrade brew

git clone status pull commit

git restore --source=HEAD :/

sudo port install npm6

node v14 포함이다.

 

mac 서버라...

대세는 port 인 것 같다.

 

진정한 오픈소스가 늘 승리하는구나 ㅠ

 

'진행 프로젝트 > [진행] 개발 팁 &amp;amp;amp;quot;줘볼까?&amp;amp;amp;quot;' 카테고리의 다른 글

App Store 정보 18.Dec.2020  (0) 2020.12.18
previousPinchRecogScale  (0) 2020.12.14
#define to let  (0) 2020.11.26
drawrect  (0) 2020.11.25
date  (0) 2020.11.25

#define M_LOG10E    0.434294481903251827651128918916605082  /* log 10e */

#define M_LN2       0.693147180559945309417232121458176568  /* log e2 */

#define M_LN10      2.30258509299404568401799145468436421   /* log e10 */

#define M_PI        3.14159265358979323846264338327950288   /* pi */

#define M_PI_2      1.57079632679489661923132169163975144   /* pi/2 */

#define M_PI_4      0.785398163397448309615660845819875721  /* pi/4 */

#define M_1_PI      0.318309886183790671537767526745028724  /* 1/pi */

#define M_2_PI      0.636619772367581343075535053490057448  /* 2/pi */

#define M_2_SQRTPI  1.12837916709551257389615890312154517   /* 2/sqrt(pi) */

#define M_SQRT2     1.41421356237309504880168872420969808   /* sqrt(2) */

#define M_SQRT1_2   0.707106781186547524400844362104849039  /* 1/sqrt(2) */

 

//  Converted to Swift 5.3 by Swiftify v5.3.19197 - https://swiftify.com/

let M_LOG10E = 0.434294481903251827651128918916605082 

let M_LN2 = 0.693147180559945309417232121458176568

let M_LN10 = 2.30258509299404568401799145468436421

let M_PI = 3.14159265358979323846264338327950288

let M_PI_2 = 1.57079632679489661923132169163975144

let M_PI_4 = 0.785398163397448309615660845819875721

let M_1_PI = 0.318309886183790671537767526745028724

let M_2_PI = 0.636619772367581343075535053490057448

let M_2_SQRTPI = 1.12837916709551257389615890312154517

let M_SQRT2 = 1.41421356237309504880168872420969808

let M_SQRT1_2 = 0.707106781186547524400844362104849039

 

'진행 프로젝트 > [진행] 개발 팁 &amp;amp;amp;quot;줘볼까?&amp;amp;amp;quot;' 카테고리의 다른 글

previousPinchRecogScale  (0) 2020.12.14
pkg mng system. brew -> port  (0) 2020.11.27
drawrect  (0) 2020.11.25
date  (0) 2020.11.25
drawText  (0) 2020.11.24

 

CGRect r = CGRectMake(0, image.size.height - 80, image.size.width, 75);

    image = [self drawRectangleOnImage:image rect:r];

    [image drawInRect:CGRectMake(0, 0, image.size.width, image.size.height)];

 

 

//  Converted to Swift 5.3 by Swiftify v5.3.19197 - https://swiftify.com/

let r = CGRect(x: 0, y: image.size.height - 80, width: image.size.width, height: 75)

image = drawRectangle(onImage: image, rect: r)

image.draw(in: CGRect(x: 0, y: 0, width: image.size.width, height: image.size.height))

 

-(UIImage *)drawRectangleOnImage:(UIImage *)img rect:(CGRect )rect{

    CGSize imgSize = img.size;

    CGFloat scale = 0;

    UIGraphicsBeginImageContextWithOptions(imgSize, NO, scale);

    [img drawAtPoint:CGPointZero];

    [[UIColor whiteColor] setFill];

    UIRectFill(rect);

    UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();

    UIGraphicsEndImageContext();

    return newImage;

}

 

//  Converted to Swift 5.3 by Swiftify v5.3.19197 - https://swiftify.com/

func drawRectangle(on img: UIImage?, rect: CGRect) -> UIImage? {

    let imgSize = img?.size

    let scale: CGFloat = 0

    UIGraphicsBeginImageContextWithOptions(imgSize ?? CGSize.zero, false, scale)

    img?.draw(at: CGPoint.zero)

    UIColor.white.setFill()

    UIRectFill(rect)

    let newImage = UIGraphicsGetImageFromCurrentImageContext()

    UIGraphicsEndImageContext()

    return newImage

}

'진행 프로젝트 > [진행] 개발 팁 &amp;amp;amp;quot;줘볼까?&amp;amp;amp;quot;' 카테고리의 다른 글

pkg mng system. brew -> port  (0) 2020.11.27
#define to let  (0) 2020.11.26
date  (0) 2020.11.25
drawText  (0) 2020.11.24
포로그래메트리  (0) 2020.10.04

        NSLocale* currentLocale = [NSLocale currentLocale];
        [[NSDate date] descriptionWithLocale:currentLocale];
        NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
        [dateFormatter setDateFormat:@"yyyy-MM-dd"];
        NSLog(@"%@",[dateFormatter stringFromDate:[NSDate date]]);
        good2date = [dateFormatter stringFromDate:[NSDate date]];

 

//  Converted to Swift 5.3 by Swiftify v5.3.19197 - https://swiftify.com/

let currentLocale = NSLocale.current as NSLocale

Date().description(with: currentLocale)

let dateFormatter = DateFormatter()

dateFormatter.dateFormat = "yyyy-MM-dd"

print("\(dateFormatter.string(from: Date()))")

good2date = dateFormatter.string(from: Date())

.

.

.

  let currentLocale = NSLocale.current as NSLocale

        Date().description(with: currentLocale as Locale)

        let dateFormatter = DateFormatter()

        dateFormatter.dateFormat = "yyyy-MM-dd"

        print("\(dateFormatter.string(from: Date()))")

        let good2date = dateFormatter.string(from: Date())

        var ylocation : CGFloat

        var _ylocation : CGFloat {

            get {

                ylocation = ylocation + 50

                return ylocation

            }

            set(newv) {

                ylocation = newv

            }

        }

        ylocation = 200

        var img2 = Util.textToImage(drawText: Util.getUserDefault(key: "userinfo"), inImage: img ?? UIImage(), atPoint: CGPoint(x: 10, y: _ylocation))

 

+= 도 괜찮았지만.

 

 

'진행 프로젝트 > [진행] 개발 팁 &amp;amp;amp;quot;줘볼까?&amp;amp;amp;quot;' 카테고리의 다른 글

#define to let  (0) 2020.11.26
drawrect  (0) 2020.11.25
drawText  (0) 2020.11.24
포로그래메트리  (0) 2020.10.04
I love swift & 3D programming.  (0) 2019.01.22

stackoverflow.com/questions/28906914/how-do-i-add-text-to-an-image-in-ios-swift

 

How do I add text to an image in iOS Swift?

I have looked around and have been unsuccessful at figuring out how take text, overlay it on an image, and then combine the two into a single UIImage. I have exhausted Google using the search term...

stackoverflow.com

swiftify.com/converter/code/

 

Objective-C to Swift Converter | Swiftify

 

swiftify.com

- (UIImage*)drawText:(NSString*)param1 tText:(NSString *)param2 inImage:(UIImage*)image data:(DDTBT_DFCT *)data yn:(BOOL)ynynyn {

    int size = 25;

    int ymargin = 5;

    int coeficient = 10;

   

    if (image == nil) {

        return nil;

        CGSize size = CGSizeMake(10, 10);

        UIGraphicsBeginImageContextWithOptions(size, YES, 0);

        [[UIColor whiteColor] setFill];

        UIRectFill(CGRectMake(0, 0, size.width, size.height));

        UIImage *image = UIGraphicsGetImageFromCurrentImageContext();

        UIGraphicsEndImageContext();

        return image;

    }

   

    UIFont *font = [UIFont boldSystemFontOfSize:size];

    CGSize textsize = CGSizeMake(20, 20);

    CGPoint margin = CGPointMake(20, 20);

    CGRect textrect = CGRectMake(image.size.width - 0.7 * textsize.width + 0.3 * textsize.width - margin.x,

                                 image.size.height - textsize.height - margin.y,

                                 textsize.width,

                                 textsize.height);

    UIGraphicsBeginImageContext(image.size);

   

    NSString *line1 = [NSString stringWithFormat:@"%@", GlobalVar.globalVar.userSelectionSiteInformation.nm_site];

    NSString *nonzerodong = @"";

    if ([data.cd_dong characterAtIndex:0] == '0') {

        nonzerodong = [data.cd_dong substringFromIndex:1];

    } else nonzerodong = data.cd_dong;

 

//  Your converted code is limited to 1 KB.

//  Please Sign Up (Free!) to double this limit.

//

//  Converted to Swift 5.3 by Swiftify v5.3.19197 - https://swiftify.com/

func drawText(_ param1: String?, tText param2: String?, in image: UIImage?, data: DDTBT_DFCT?, yn ynynyn: Bool) -> UIImage? {

    var image = image

    let size = 25

    let ymargin = 5

    let coeficient = 10

 

    if image == nil {

        return nil

        let size = CGSize(width: 10, height: 10)

        UIGraphicsBeginImageContextWithOptions(size, true, 0)

        UIColor.white.setFill()

        UIRectFill(CGRect(x: 0, y: 0, width: size.width, height: size.height))

        var image = UIGraphicsGetImageFromCurrentImageContext()

        UIGraphicsEndImageContext()

        return image

    }

 

    let font = UIFont.boldSystemFont(ofSize: size)

    let textsize = CGSize(width: 20, height: 20)

    let margin = CGPoint(x: 20, y: 20)

    let textrect = CGRect(

        x: (image?.size.width ?? 0.0) - 0.7 * textsize.width + 0.3 * textsize.width - margin.x,

//

//

//  %< ----------------------------------------------------------------------------------------- %<

 

1Kbyte만 번역 된다 해도 API 찾는 수고를 덜 수 있다. 로그인 하면 오히려 1일 개수 제한 걸린다. 뭐, 큰 프로젝트 하게 되면 사겠으나...

행여 사게 되면 프로젝트 단위 번역이 한 방에 되는지 확인 필요함.

 

 

 

유튜브에 관련 소프트웨어 정보가 이미 많다.

www.youtube.com/results?search_query=%ED%8F%AC%ED%86%A0%EA%B7%B8%EB%A0%88%EB%A9%94%ED%8A%B8%EB%A6%AC

 

https://www.youtube.com/results?search_query=%ED%8F%AC%ED%86%A0%EA%B7%B8%EB%A0%88%EB%A9%94%ED%8A%B8%EB%A6%AC

© 2020 Google LLC 회사명: Google LLC CEO: Sundar Pichai 주소: 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA. 전화: 080-822-1450 (무료)

www.youtube.com

www.youtube.com/watch?v=1l5Y530PFRE

 

www.koscaj.com/news/articleView.html?idxno=201540

 

드론으로 공사데이터 수집 수주경쟁력 우위 확보 - 대한전문건설신문

하루 30분을 투자해 건설현장의 측량, 토공량 산출, 시공현장 관리, 공정관리, 3D 모델링, 시설물 안전점검, 각종 채증 자료 수집, 민원 관리 등이 가능하다면 이를 이용하지 않을 건설업체가 있을

www.koscaj.com

pix4d mapper
www.pix4d.com/pricing

 

Pix4D software pricing plans

Pricing plans and options for Pix4D photogrammetry software. Start mapping and modeling with drones images today.

www.pix4d.com

월 35만원 선.

 

경연이앤씨

출처 : 대한전문건설신문(http://www.koscaj.com)

www.koscaj.com/news/articlePrint.html?idxno=97539

 

인쇄하기

 

www.koscaj.com

www.saramin.co.kr/zf_user/company-info/view/csn/OHdVdC9NeVQyd3pRSUUydHoyOEFFZz09/company_nm/%EC%BC%80%EC%9D%B4%EC%99%80%EC%9D%B4%EC%9D%B4%EC%95%A4%EC%95%84%EC%9D%B4(%EC%A3%BC)

 

케이와이이앤아이(주)기업정보 - 사람인

케이와이이앤아이(주)기업정보 및 연봉정보, 취업자료, 진행중 채용정보 제공

www.saramin.co.kr

사원수 3명, 매출 5억

www.saramin.co.kr/zf_user/company-info/view/csn/eWZPZCtLVXZvMFdXSFlCOFowbWdvZz09/company_nm/%EA%B2%BD%EC%97%B0%EC%9D%B4%EC%95%A4%EC%94%A8(%EC%A3%BC)

 

경연이앤씨(주)기업정보 - 사람인

경연이앤씨(주)기업정보 및 연봉정보, 취업자료, 진행중 채용정보 제공

www.saramin.co.kr

사원수 10명, 매출 80억

원청은 여기로 보인다.

www.youtube.com/watch?v=bspUmwbp_1M

 

'진행 프로젝트 > [진행] 개발 팁 &amp;amp;amp;quot;줘볼까?&amp;amp;amp;quot;' 카테고리의 다른 글

drawrect  (0) 2020.11.25
date  (0) 2020.11.25
drawText  (0) 2020.11.24
I love swift & 3D programming.  (0) 2019.01.22
three.js를 사용하여 웹에 3D 얼굴 띄우기  (2) 2019.01.08

 I am working to build a 3D programming using the swift programming language. OpenGL, DirectX, Metal and whatever I want to study 3D stuff will be here. My goal is that I am going to make all of 3D stuff by swift programming language later on. Why Swift? We thought that C/C++ is the best tool playing memory and every CPU functions. The reason why I choose is that Modern language is not just a programming language.


It's the way to think.


'진행 프로젝트 > [진행] 개발 팁 &amp;amp;amp;quot;줘볼까?&amp;amp;amp;quot;' 카테고리의 다른 글

drawrect  (0) 2020.11.25
date  (0) 2020.11.25
drawText  (0) 2020.11.24
포로그래메트리  (0) 2020.10.04
three.js를 사용하여 웹에 3D 얼굴 띄우기  (2) 2019.01.08

크롬보다 파폭에서 더 잘되네.

http://hajunho.com/jjj/

위에꺼 이제 안된다.

 들어가면 복잡한데

three.js 로더를 이용해서 obj 파일 불러왔다고 보면 간단함.


요새 데이터 시각화에 관심이 늘었는데 매거진을 하나 파야 할 것 같다. 아니다. 일만 많아지니 오드로리드랑 안드로이드에 집중해야지.

'진행 프로젝트 > [진행] 개발 팁 &amp;amp;amp;quot;줘볼까?&amp;amp;amp;quot;' 카테고리의 다른 글

drawrect  (0) 2020.11.25
date  (0) 2020.11.25
drawText  (0) 2020.11.24
포로그래메트리  (0) 2020.10.04
I love swift & 3D programming.  (0) 2019.01.22

+ Recent posts