This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: MIT | |
using System.Runtime.CompilerServices; | |
using Godot; | |
using Vector3 = System.Numerics.Vector3; | |
namespace Jovian.Math | |
{ | |
public static class Damp | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: Unlicense | |
// Inspired by https://okyrylchuk.dev/blog/when-to-use-frozen-collections-in-dotnet/ | |
using System.Collections.Frozen; | |
using System.Collections.Immutable; | |
using BenchmarkDotNet.Attributes; | |
namespace Benchmark.Conceptual; | |
[ShortRunJob] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: Unlicense | |
extends Control | |
# Awaits until any one of the provided array of signals was emitted, and returns that signal | |
func any(signals : Array[Signal]) -> Signal: | |
var emitted : Array[Signal] = [] | |
var lambdas : Array[Callable] = [] | |
for sig in signals: | |
var lambda := func(): |
OlderNewer