[#mp_units-unit_vector]
= xref:mp_units.adoc[mp&lowbar;units]::unit&lowbar;vector
:relfileprefix: ../
:mrdocs:

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;cartesian&lowbar;vector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/cartesian_vector-08.adoc[cartesian&lowbar;vector]
unit&lowbar;vector(xref:mp_units/cartesian_vector-08.adoc[cartesian&lowbar;vector] const& vec)
requires treat&lowbar;as&lowbar;floating&lowbar;point&lt;T&gt;;
----

== Return Value

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
