Point, Vec and Mat

GeometryBasics defines its own set of (small) Static Vectors and Matrices:

Point{N,T} <: StaticVector{N,T} <: AbstractVector{T}
Vec{N,T} <: StaticVector{N,T} <: AbstractVector{T}
Mat{Row, Column, T, L} <: AbstractMatrix{T}

These types are used throughout GeometryBasics to speed up calculations similar to how StaticArrays.jl does.

Aliases

GeometryBasics exports common aliases for Point, Vec, Mat and Rect:

Vec

T(eltype)Float64Float32IntUInt
N(dim)Vec{N,T}Vecd{N}Vecf{N}Veci{N}Vecui{N}
2Vec2{T}Vec2dVec2fVec2iVec2ui
3Vec3{T}Vec3dVec3fVec3iVec3ui

Point

T(eltype)Float64Float32IntUInt
N(dim)Point{N,T}Pointd{N}Pointf{N}Pointi{N}Pointui{N}
2Point2{T}Point2dPoint2fPoint2iPoint2ui
3Point3{T}Point3dPoint3fPoint3iPoint3ui

Mat

T(eltype)Float64Float32IntUInt
N(dim)Mat{N,T}Matd{N}Matf{N}Mati{N}Matui{N}
2Mat2{T}Mat2dMat2fMat2iMat2ui
3Mat3{T}Mat3dMat3fMat3iMat3ui