Skip to content

Instantly share code, notes, and snippets.

using AbstractResolver;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
var staticServiceFlag = StaticConfiguredServiceFlag.Ping;
var dynamicConfig = new DynamicConfiguredServiceConfig()
{
// Default to Marco
Flag = DynamicConfiguredServiceFlag.Marco
public static bool ProjectIntersection(
RectangleF r1,
RectangleF r2,
Vector2 v1,
Vector2 v2,
[MaybeNullWhen(false)]
out CollisionFrame? frame
)
{
var dv = v1 - v2;

To determine if two moving rectangles will collide and to find the start, middle, and end points of their impact times, we need to consider the paths of the rectangles and detect any intersections along their trajectories. Here's how to approach the problem step-by-step:

Step-by-Step Algorithm

  1. Define the Rectangles and Their Movements:

    • For each rectangle, you have its initial position, dimensions, and movement vector.
  2. Parametrize the Motion:

using System;
using System.Collections.Generic;
using System.Runtime.Intrinsics;
using System.Threading;
using System.Threading.Tasks;
using PhysicsGame.Core.Extensions;
public class WaveFunctionCollapser(IWaveCollapseHandler model, WaveCollapseConfig config)
{
private IWaveCollapseHandler Model { get; } = model;
public static class QueryableExtensions
{
public static IQueryable<JoinMapper<TA, TB>> Join<TA, TB, TKey>(
this IQueryable<TA> outer,
IQueryable<TB> inner,
Expression<Func<TA, TKey>> outerSelector,
Expression<Func<TB, TKey>> innerSelector
)
{
return outer.Join(
set-option -g default-shell $SHELL
set -g set-clipboard on
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
set -g base-index 1
set -g pane-base-index 1
@SteffenBlake
SteffenBlake / PropertyWatcherBase.cs
Last active August 3, 2023 04:57
PropertyWatcherBase
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using System.Transactions;
namespace Assets.Scripts.Imports
{
internal static class ExpressionExtensions
@SteffenBlake
SteffenBlake / Pixxelkicks RF Jugg League start plan.md
Last active March 8, 2023 07:19
PixxelKicks Ruthless Lightning -> RF Jugg League start plan.md

Run 1: Shadow

Enemy at the Gate -> Stormblast Mine
Breaking some Eggs -> Orb of Storms

  • Buy and pickup ALL normal ilvl 4 to 7 sceptres you can get your grubby paws on

Mercy Mission -> Quicksilver #1
The Caged Brute -> Clarity
Siren's Cadence -> Fire Trap

ACT 1

Vendor String: g-g-r|g-r|nne

Enemy at the Gate

  • Lv 2 - Splitting Steel (support with bleed)

Breaking Some Eggs

  • Lv 2+ - Dash
  • $$$ - Steelskin
@SteffenBlake
SteffenBlake / 3.18PoisonConcRangerStart.md
Last active May 10, 2022 17:24
PoE 3.18 Poisonous Concoction Ranger League Start

Tips

Vendor String:

Remember: 8x Whetstones = 1x Bauble (Act 3 on)

Save 4 baubles for lv 42 to use on Hallowed Life Flask and lv 61 to use on Divine Life Flask

Socket Links: