usagi 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package usagi --version 2.0.0
NuGet\Install-Package usagi -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="usagi" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add usagi --version 2.0.0
#r "nuget: usagi, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install usagi as a Cake Addin
#addin nuget:?package=usagi&version=2.0.0

// Install usagi as a Cake Tool
#tool nuget:?package=usagi&version=2.0.0

usagi.cs

わたしが欲しいと思った適当な機能たち for C#

Release Note 2.0.0

  • Issue #2 Quantity に無次元数を扱う Ratio 的なやつ欲しいよね、でも非無次元数型や double なんかの素の数値型とも面倒なく親和性いいやつが欲しいよね
    • usagi.Quantity.Ratio, usagi.Quantity.Ratio.Extension 名前空間に機能が追加されました。
    • 実数値を値域 [ 0 ... 1 ] (UNORM), [ -1 ... 1 ] (SNORM) を規準とする比として扱いやすくするエクステンション群をたくさん実装しました。
    • 整数型と実数型の間で UNORM, SNORM を考慮した比に基づいた値の変換を行うエクステンション群をたくさん実装しました。
    • 実数値の比を分母と分子からなる分数表現に分解する double.DecompositionToCommonFraction エクステンションも追加しました。
  • Issue #3 名前空間、ソースコードディレクトリーの配置、ファイル名の見直し
    • 名前空間のルールを整理し、一部の名前空間を変更しました。
      • エクステンションは機能の名前空間の下の .Extenstion 名前空間に入れる、とか。
      • エクステンションのクラス名のサフィックスは Extension に統一する、とか。
      • usagi.Extension に入れていたアレコレを機能ごとに名前空間を分けて再配置した、とか。
    • ディレクトリーわけを真面目にしてソースファイルの大移動(配置整理)をしました。
  • Issue #4 usagi.Quantity の Length, PlaneAngle の EqualsTo 系のメソッド名を Equals へ統一
  • usagi.ColorSpace を追加しました。
    • System.Windows.Media.Color を基準にあれこれと機能を書きました。
    • Color を数値から生成する Factory とか。
    • CSS形式の文字列表現の色値 rgb(123,45,67) とか hsla(220,50%,50%,0.6) とかの文字列値から string.ToColor() とかデキマス。
    • Color を HSLA 色空間のタプルと相互変換したり、 HSLA 色空間で NearlyEquals したりデキマス。
    • タプル形式の RGBA, HSLA を色っぽく扱うエクステ、ツイテマス。
  • usagi.Collection.Enumerable の区間生成機能を強化しました。
    • Range( begin, count ) 系の便利糖衣構文のほか、
    • Range( begin, end, termination) で開区間、半開区間、閉区間を生成したり、
    • そもそも int 以外の組み込み数値型 byte でも decimal でも Range できるようになったり
    • Range( ( begin0, end0, termination0 ), ( begin1, end1, termination1 ), ... ) などと呪文を唱え複数のRangeを一発で生成できたりします。
  • ほか、ちまちまけっこう修正とか追加とかしたし、名前空間の破壊的変更とかもしたのでメジャーバージョンを上げました。

License

Author

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on usagi:

Package Downloads
usagi.WPF

usagi.cs の WPF 関連機能部分

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 787 4/13/2019
2.0.0 678 12/30/2018
1.2.0 675 12/26/2018
1.1.0 683 12/23/2018
1.0.1 658 12/21/2018
1.0.0 658 12/20/2018
0.0.0 696 12/16/2018