MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / LNLIB_XYZW_set_w

Function LNLIB_XYZW_set_w

dotnet/CAPI/src/XYZW_CAPI.cpp:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83double LNLIB_XYZW_get_w(XYZW_C xyzw) { return xyzw.w; }
84
85XYZW_C LNLIB_XYZW_set_w(XYZW_C xyzw, double w)
86{
87 LNLib::XYZW vw(xyzw.wx, xyzw.wy, xyzw.wz, xyzw.w);
88 LNLib::XYZ res = vw.ToXYZ(1);
89 return { w * res.GetX(), w * res.GetY(), w * res.GetZ(), w };
90}

Callers

nothing calls this directly

Calls 4

ToXYZMethod · 0.45
GetXMethod · 0.45
GetYMethod · 0.45
GetZMethod · 0.45

Tested by

no test coverage detected