2nd update on 20230415 by nitload youmu
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
using StgSharp.Math;
|
||||
using StgSharp.Linear;
|
||||
using StgSharp.Math;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Geometries
|
||||
{
|
||||
public class Circle : IGeometry
|
||||
public class Circle : IPlainGeometry
|
||||
{
|
||||
internal Point _baseCenter;
|
||||
internal Point _center;
|
||||
internal Point _radiusVec;
|
||||
internal Point _pointOnCircle;
|
||||
internal Point _pointOnPlain;
|
||||
internal RenderMode _renderMode;
|
||||
internal readonly uint bornTick;
|
||||
|
||||
@@ -17,9 +19,9 @@ namespace StgSharp.Geometries
|
||||
|
||||
public override Point RefPoint => _center;
|
||||
|
||||
public override Point RefVec01 => _radiusVec;
|
||||
public override Point RefVec01 => _pointOnCircle;
|
||||
|
||||
public override Point RefVec02 => default;
|
||||
public override Point RefVec02 => _pointOnPlain;
|
||||
|
||||
public override RenderMode renderMode => _renderMode;
|
||||
|
||||
@@ -40,19 +42,19 @@ namespace StgSharp.Geometries
|
||||
|
||||
internal override void CalcVec02(vec3d vec, uint tick)
|
||||
{
|
||||
_radiusVec._position = vec + UpdateRadius(tick);
|
||||
_pointOnCircle._position = vec + UpdateRadius(tick);
|
||||
}
|
||||
|
||||
internal override void CalcVec03(vec3d vec, uint tick)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
_pointOnPlain._position = vec + UpdatePlain(tick);
|
||||
}
|
||||
|
||||
public virtual vec3d MoveCenter(uint tick) => default;
|
||||
|
||||
public virtual vec3d UpdateRadius(uint tick) => default;
|
||||
|
||||
|
||||
public virtual vec3d UpdatePlain(uint tick) => default;
|
||||
|
||||
public override float SetArrayX()
|
||||
{
|
||||
@@ -64,6 +66,11 @@ namespace StgSharp.Geometries
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override Plain GetPlain()
|
||||
{
|
||||
return new Plain(_center,_pointOnCircle,_pointOnPlain);
|
||||
}
|
||||
|
||||
internal override void OnRender(uint tick)
|
||||
{
|
||||
tick-=bornTick;
|
||||
|
||||
Reference in New Issue
Block a user