daily update on 20230416 by nitload youmu
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using StgSharp;
|
||||
using StgSharp.Linear;
|
||||
using StgSharp.Math;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -16,7 +17,7 @@ namespace StgSharp.Geometries
|
||||
internal RenderMode _renderMode;
|
||||
internal readonly uint bornTick;
|
||||
|
||||
public override sealed Point BasePoint => _basePoint;
|
||||
public override sealed Point RefOrigin => _basePoint;
|
||||
|
||||
public override sealed Point RefPoint=>_vertex1;
|
||||
|
||||
@@ -63,8 +64,8 @@ namespace StgSharp.Geometries
|
||||
switch (_renderMode)
|
||||
{
|
||||
case RenderMode.BasePoint:
|
||||
CalcVec02(BasePoint._position,tick);
|
||||
CalcVec03(BasePoint._position,tick);
|
||||
CalcVec02(RefOrigin._position,tick);
|
||||
CalcVec03(RefOrigin._position,tick);
|
||||
break;
|
||||
case RenderMode.RefPoint:
|
||||
CalcVec02(_vertex1._position,tick);
|
||||
@@ -103,5 +104,11 @@ namespace StgSharp.Geometries
|
||||
|
||||
return sides;
|
||||
}
|
||||
|
||||
public override Plain GetPlain()
|
||||
{
|
||||
return new Plain(this._vertex1,this._vertex2,this._vertex3);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user