daily upsate on 20230517 by nitload youmu
This commit is contained in:
@@ -11,35 +11,35 @@ namespace StgSharp.Geometries
|
||||
{
|
||||
public unsafe class Point : INode<Point>
|
||||
{
|
||||
internal vec3d* postionPtr;
|
||||
internal vec3d* positionPtr;
|
||||
|
||||
internal Point(vec3d* ptr)
|
||||
{
|
||||
postionPtr = ptr;
|
||||
positionPtr = ptr;
|
||||
}
|
||||
|
||||
public vec3d Position
|
||||
{
|
||||
get { return (*this.postionPtr); }
|
||||
set { (*this.postionPtr) = value; }
|
||||
get { return *positionPtr; }
|
||||
set { *positionPtr = value; }
|
||||
}
|
||||
|
||||
public float X
|
||||
{
|
||||
get { return (*this.postionPtr).X; }
|
||||
set { (*this.postionPtr).X = value; }
|
||||
get { return (*this.positionPtr).X; }
|
||||
set { (*this.positionPtr).X = value; }
|
||||
}
|
||||
|
||||
public float Y
|
||||
{
|
||||
get { return (*this.postionPtr).Y; }
|
||||
set { (*this.postionPtr).Y = value; }
|
||||
get { return (*this.positionPtr).Y; }
|
||||
set { (*this.positionPtr).Y = value; }
|
||||
}
|
||||
|
||||
public float Z
|
||||
{
|
||||
get { return (*this.postionPtr).Z; }
|
||||
set { (*this.postionPtr).Z = value; }
|
||||
get { return (*this.positionPtr).Z; }
|
||||
set { (*this.positionPtr).Z = value; }
|
||||
}
|
||||
|
||||
internal readonly bool isVertex;
|
||||
@@ -61,7 +61,7 @@ namespace StgSharp.Geometries
|
||||
|
||||
public bool IsOnPlain(IPlainGeometry geo)
|
||||
{
|
||||
return (*this.postionPtr) * geo.GetPlain().plainParameter == 1;
|
||||
return (*this.positionPtr) * geo.GetPlain().plainParameter == 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user