Vectors
Meshes.Vec — Type
Vec(x, [y, z])
Vec((x, [y, z]))A vector with Cartesian coordinates in length units (default to meters). Vectors are used in linear algebra and can be obtained by subtracting two Points in any coordinate reference system.
See Point for more details on preprocessing of coordinates and units.
Examples
# vectors in 2D Euclidean space
Vec(1.0, 2.0)
Vec(1km, 2km)
# vectors in 3D Euclidean space
Vec(1.0, 2.0, 3.0)
Vec(1km, 2km, 3km)
# vector as the difference of two points
Point(1.0, 1.0) - Point(0.0, 0.0)Notes
A Vec is a subtype of StaticVector from StaticArrays.jl.