rename ungenericed graphic vec usage to genericed

This commit is contained in:
Youmu Liu
2026-09-04 18:51:27 +08:00
parent 41ca31fd9a
commit ee67dfbde1
20 changed files with 755 additions and 760 deletions
@@ -29,8 +29,8 @@ namespace Nitload.Geometries
: base(v0x, v0y, v1x, v1y, v2x, v2y, v3x, v3y)
{
#if DEBUG
Vec2 side0 = (this[0].Coord - this[1].Coord).XY;
Vec2 side1 = (this[2].Coord - this[1].Coord).XY;
Vec2<float> side0 = (this[0].Coord - this[1].Coord).XY;
Vec2<float> side1 = (this[2].Coord - this[1].Coord).XY;
if (side0.Cross(side1) == 0) {
throw new ArgumentException();
}
@@ -51,8 +51,8 @@ namespace Nitload.Geometries
: base(coordination, v0x, v0y, v1x, v1y, v2x, v2y, v3x, v3y)
{
#if DEBUG
Vec2 side0 = (this[0].Coord - this[1].Coord).XY;
Vec2 side1 = (this[2].Coord - this[1].Coord).XY;
Vec2<float> side0 = (this[0].Coord - this[1].Coord).XY;
Vec2<float> side1 = (this[2].Coord - this[1].Coord).XY;
if (side0.Cross(side1) == 0) {
throw new ArgumentException();
}
@@ -68,11 +68,11 @@ namespace Nitload.Geometries
/// <returns>
///
/// </returns>
public virtual Vec3 MovCenter(
uint tick
public virtual Vec3<float> MovCenter(
uint tick
)
{
return default(Vec3);
return Vec3<float>.Zero;
}
}