mirror of
https://github.com/zhigang1992/PerspectiveTransform.git
synced 2026-01-12 22:49:33 +08:00
group extension better
This commit is contained in:
@@ -15,8 +15,3 @@ extension CGPoint {
|
||||
}
|
||||
}
|
||||
|
||||
extension float3x3 {
|
||||
func zNormalized() -> float3x3 {
|
||||
return (Float(1) / self[2,2]) * self
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,8 @@ extension float3x3 {
|
||||
result[2,2] = 1
|
||||
return result
|
||||
}
|
||||
|
||||
func zNormalized() -> float3x3 {
|
||||
return (Float(1) / self[2,2]) * self
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user