daily update on 20230416 by nitload youmu
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
using Steamworks;
|
||||
using StgSharp.Linear;
|
||||
using StgSharp.Math;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Geometries
|
||||
@@ -11,8 +13,8 @@ namespace StgSharp.Geometries
|
||||
{
|
||||
internal Point _basePoint;
|
||||
internal Point _center;
|
||||
internal Point _radius;
|
||||
internal Point _angle;
|
||||
internal Point _beginPoint;
|
||||
internal Point _endPoint;
|
||||
internal RenderMode _renderMode;
|
||||
internal readonly uint bornTick;
|
||||
|
||||
@@ -26,13 +28,13 @@ namespace StgSharp.Geometries
|
||||
bornTick = tickCounter._value;
|
||||
}
|
||||
|
||||
public override Point BasePoint => _basePoint;
|
||||
public override Point RefOrigin => _basePoint;
|
||||
|
||||
public override Point RefPoint => _center;
|
||||
|
||||
public override Point RefVec01 => _radius;
|
||||
public override Point RefVec01 => _beginPoint;
|
||||
|
||||
public override Point RefVec02 => _angle;
|
||||
public override Point RefVec02 => _endPoint;
|
||||
|
||||
public override RenderMode renderMode => _renderMode;
|
||||
|
||||
@@ -45,12 +47,12 @@ namespace StgSharp.Geometries
|
||||
|
||||
internal sealed override void CalcVec02(vec3d vec, uint tick)
|
||||
{
|
||||
_radius._position = vec + UpdateRadius(tick);
|
||||
_beginPoint._position = vec + UpdateRadius(tick);
|
||||
|
||||
}
|
||||
internal sealed override void CalcVec03(vec3d vec, uint tick)
|
||||
{
|
||||
_angle._position = vec + UpdateAngle(tick);
|
||||
_endPoint._position = vec + UpdateAngle(tick);
|
||||
}
|
||||
|
||||
public virtual vec3d MoveCenter(uint tick) => default;
|
||||
@@ -88,7 +90,11 @@ namespace StgSharp.Geometries
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override Line[] GetAllSides() => throw new NotImplementedException();
|
||||
|
||||
|
||||
public override Plain GetPlain()
|
||||
{
|
||||
return new Plain(this._center,this._beginPoint,this._endPoint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user