MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Float3

Method Float3

Source/Engine/Visject/ShaderGraphValue.h:278–286  ·  view source on GitHub ↗

Create float3 from X, Y and Z values. The x. The y. The z. float3

Source from the content-addressed store, hash-verified

276 /// <param name="z">The z.</param>
277 /// <returns>float3</returns>
278 static ShaderGraphValue Float3(const ShaderGraphValue& x, const ShaderGraphValue& y, const ShaderGraphValue& z)
279 {
280 return ShaderGraphValue(
281 VariantType::Types::Float3,
282 String::Format(TEXT("float3({0}, {1}, {2})"),
283 Cast(x, VariantType::Types::Float).Value,
284 Cast(y, VariantType::Types::Float).Value,
285 Cast(z, VariantType::Types::Float).Value));
286 }
287
288 /// <summary>
289 /// Create float4 from X, Y, Z and W values.

Callers

nothing calls this directly

Calls 3

ShaderGraphValueClass · 0.85
FormatFunction · 0.50
CastFunction · 0.50

Tested by

no test coverage detected