daily update on 20231016 by nitload youmu, vao,vbo,ebo struct added

This commit is contained in:
Nitload
2023-10-17 01:22:30 +08:00
parent 6c3349f5a2
commit 614fabe26c
135 changed files with 28619 additions and 5432 deletions
@@ -8,27 +8,27 @@ namespace StgSharp.Geometries
{
public unsafe class Point
{
internal Vec3d position;
internal vec3d position;
internal readonly bool isVertex;
public Point() { }
internal Point(Vec3d p)
internal Point(vec3d p)
{
position = p;
}
internal Point(Vector4 vector)
{
position = new Vec3d(vector);
position = new vec3d(vector);
}
public Point(float x, float y, float z)
{
position = new Vec3d(x, y, z);
position = new vec3d(x, y, z);
}
public Vec3d Position
public vec3d Position
{
get { return position; }
set { position = value; }
@@ -64,12 +64,12 @@ namespace StgSharp.Geometries
/// <param name="tick">Time passes since the program begin, counted by frames</param>
public virtual void Update(uint tick) { }
public bool IsInGeometry(IPlainGeometry geo)
public bool IsInGeometry(PlainGeometry geo)
{
throw new NotImplementedException();
}
public bool IsOnPlain(IPlainGeometry geo)
public bool IsOnPlain(PlainGeometry geo)
{
return position * geo.GetPlain().plainParameter == 1;
}