mirror of
https://github.com/zhigang1992/PerspectiveTransform.git
synced 2026-04-29 04:35:14 +08:00
16 lines
221 B
Swift
16 lines
221 B
Swift
//
|
|
// CGGeometry+3D.swift
|
|
// Pods
|
|
//
|
|
// Created by Paul Zabelin on 2/21/16.
|
|
//
|
|
//
|
|
|
|
import CoreGraphics
|
|
|
|
extension CGPoint {
|
|
var homogeneous3dvector: Vector3 {
|
|
return .init(.init(x), .init(y), .one)
|
|
}
|
|
}
|