-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dont use macro for aliases and introduce more variants (Float64 -> d,…
… UInt -> ui) (#214) * dont use maccro for aliases * add a section about aliases * add convert for different Rect eltypes * export Float64 Rect types --------- Co-authored-by: ffreyer <[email protected]>
- Loading branch information
1 parent
bc1ce58
commit 9550977
Showing
6 changed files
with
207 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
const Point1{T} = Point{1,T} | ||
export Point1 | ||
const Point1d = Point1{Float64} | ||
export Point1d | ||
const Point1f = Point1{Float32} | ||
export Point1f | ||
const Point1i = Point1{Int64} | ||
export Point1i | ||
const Point1ui = Point1{UInt64} | ||
export Point1ui | ||
const Vec1{T} = Vec{1,T} | ||
export Vec1 | ||
const Vec1d = Vec1{Float64} | ||
export Vec1d | ||
const Vec1f = Vec1{Float32} | ||
export Vec1f | ||
const Vec1i = Vec1{Int64} | ||
export Vec1i | ||
const Vec1ui = Vec1{UInt64} | ||
export Vec1ui | ||
const Mat1{T} = Mat{1,1,T,1} | ||
export Mat1 | ||
const Mat1d = Mat1{Float64} | ||
export Mat1d | ||
const Mat1f = Mat1{Float32} | ||
export Mat1f | ||
const Mat1i = Mat1{Int64} | ||
export Mat1i | ||
const Mat1ui = Mat1{UInt64} | ||
export Mat1ui | ||
const Point2{T} = Point{2,T} | ||
export Point2 | ||
const Point2d = Point2{Float64} | ||
export Point2d | ||
const Point2f = Point2{Float32} | ||
export Point2f | ||
const Point2i = Point2{Int64} | ||
export Point2i | ||
const Point2ui = Point2{UInt64} | ||
export Point2ui | ||
const Vec2{T} = Vec{2,T} | ||
export Vec2 | ||
const Vec2d = Vec2{Float64} | ||
export Vec2d | ||
const Vec2f = Vec2{Float32} | ||
export Vec2f | ||
const Vec2i = Vec2{Int64} | ||
export Vec2i | ||
const Vec2ui = Vec2{UInt64} | ||
export Vec2ui | ||
const Mat2{T} = Mat{2,2,T,4} | ||
export Mat2 | ||
const Mat2d = Mat2{Float64} | ||
export Mat2d | ||
const Mat2f = Mat2{Float32} | ||
export Mat2f | ||
const Mat2i = Mat2{Int64} | ||
export Mat2i | ||
const Mat2ui = Mat2{UInt64} | ||
export Mat2ui | ||
const Point3{T} = Point{3,T} | ||
export Point3 | ||
const Point3d = Point3{Float64} | ||
export Point3d | ||
const Point3f = Point3{Float32} | ||
export Point3f | ||
const Point3i = Point3{Int64} | ||
export Point3i | ||
const Point3ui = Point3{UInt64} | ||
export Point3ui | ||
const Vec3{T} = Vec{3,T} | ||
export Vec3 | ||
const Vec3d = Vec3{Float64} | ||
export Vec3d | ||
const Vec3f = Vec3{Float32} | ||
export Vec3f | ||
const Vec3i = Vec3{Int64} | ||
export Vec3i | ||
const Vec3ui = Vec3{UInt64} | ||
export Vec3ui | ||
const Mat3{T} = Mat{3,3,T,9} | ||
export Mat3 | ||
const Mat3d = Mat3{Float64} | ||
export Mat3d | ||
const Mat3f = Mat3{Float32} | ||
export Mat3f | ||
const Mat3i = Mat3{Int64} | ||
export Mat3i | ||
const Mat3ui = Mat3{UInt64} | ||
export Mat3ui | ||
const Point4{T} = Point{4,T} | ||
export Point4 | ||
const Point4d = Point4{Float64} | ||
export Point4d | ||
const Point4f = Point4{Float32} | ||
export Point4f | ||
const Point4i = Point4{Int64} | ||
export Point4i | ||
const Point4ui = Point4{UInt64} | ||
export Point4ui | ||
const Vec4{T} = Vec{4,T} | ||
export Vec4 | ||
const Vec4d = Vec4{Float64} | ||
export Vec4d | ||
const Vec4f = Vec4{Float32} | ||
export Vec4f | ||
const Vec4i = Vec4{Int64} | ||
export Vec4i | ||
const Vec4ui = Vec4{UInt64} | ||
export Vec4ui | ||
const Mat4{T} = Mat{4,4,T,16} | ||
export Mat4 | ||
const Mat4d = Mat4{Float64} | ||
export Mat4d | ||
const Mat4f = Mat4{Float32} | ||
export Mat4f | ||
const Mat4i = Mat4{Int64} | ||
export Mat4i | ||
const Mat4ui = Mat4{UInt64} | ||
export Mat4ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters