// - edit Vector.copy.tt to modify #nullable enable namespace Brutal.Numerics; public partial struct double2 { /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly void CopyTo(Span destination) { if (destination.Length < ComponentCount) throw new ArgumentException("Length must be at least 2.", nameof(destination)); Unsafe.WriteUnaligned(ref Unsafe.As(ref MemoryMarshal.GetReference(destination)), this); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public readonly bool TryCopyTo(Span destination) { if (destination.Length < ComponentCount) return false; Unsafe.WriteUnaligned(ref Unsafe.As(ref MemoryMarshal.GetReference(destination)), this); return true; } }