MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / diagonal

Method diagonal

source/MRMesh/MRVector4.h:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 explicit Vector4( NoInit ) noexcept { }
37 constexpr Vector4( T x, T y, T z, T w ) noexcept : x( x ), y( y ), z( z ), w( w ) { }
38 static constexpr Vector4 diagonal( T a ) noexcept
39 {
40 return Vector4( a, a, a, a );
41 }
42
43 // Here `T == U` doesn't seem to cause any issues in the C++ code, but we're still disabling it because it somehow gets emitted
44 // when generating the bindings, and looks out of place there. Specifically for Vector4, it only gets emitted on Windows (but not on Linux) for some reason.

Callers

nothing calls this directly

Calls 1

Vector4Class · 0.85

Tested by

no test coverage detected