コード例 #1
0
ファイル: World.cs プロジェクト: DeepSeeBee/Mvi
 internal double GetDistance(CVector3Dbl rhs)
 => (Max(this, rhs) - Min(this, rhs)).GetLength();
コード例 #2
0
ファイル: World.cs プロジェクト: DeepSeeBee/Mvi
 internal static CVector3Dbl Max(CVector3Dbl lhs, CVector3Dbl rhs)
 => new CVector3Dbl(Math.Max(lhs.x, rhs.x),
                    Math.Max(lhs.y, rhs.y),
                    Math.Max(lhs.z, rhs.z));