MCPcopy Create free account
hub / github.com/WheretIB/nullc / float3

Function float3

tests/TestArray.cpp:132–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130"// Multidimensional array constructor test\r\n\
131import std.math;\r\n\
132float3 float3(int[3] comp){ float3 ret; ret.x = comp[0]; ret.y = comp[1]; ret.z = comp[2]; return ret; }\r\n\
133float3 float3(float[3] comp){ float3 ret; ret.x = comp[0]; ret.y = comp[1]; ret.z = comp[2]; return ret; }\r\n\
134float3 float3(double[3] comp){ float3 ret; ret.x = comp[0]; ret.y = comp[1]; ret.z = comp[2]; return ret; }\r\n\
135float3 g = float3({4.0, 6.0, 8.0}), h = float3({3.0f, 5.0f, 7.0f}), j = float3({11, 12, 13});\r\n\
136\r\n\

Callers 3

TestSglList.cppFile · 0.70
TestSglVector.cppFile · 0.70
TestArray.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected