arrange of proj structure

This commit is contained in:
Youmu Liu
2026-02-27 17:09:13 +08:00
parent 15434ed053
commit a798ab07f1
173 changed files with 32304 additions and 33955 deletions
+13 -6
View File
@@ -1,4 +1,4 @@
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// -----------------------------------------------------------------------
// file="Point"
// Project: StgSharp
@@ -25,8 +25,7 @@
//
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
using StgSharp.Mathematics;
using StgSharp.Mathematics.Graphic;
using StgSharp.Mathematics.Graphics;
using System;
using System.Collections.Generic;
@@ -43,19 +42,27 @@ namespace StgSharp.Geometries
[FieldOffset(0)] private Vec3 coord;
[FieldOffset(0)] internal Vector4 coordVec;
internal Point(Vec4 vector)
internal Point(
Vec4 vector
)
{
coordVec = vector.vec;
coordVec.W = 1;
}
public Point(Vec3 coord)
public Point(
Vec3 coord
)
{
Coord = coord;
coordVec.W = 1;
}
public Point(float x, float y, float z)
public Point(
float x,
float y,
float z
)
{
coordVec = new Vector4(x, y, z, 1);
}