Class Vertex
Unity-specific vertex implementation for convex hull calculations.
Implements
Namespace: NWH.DWP2.MiConvexHull
Assembly: NWH.DWP2.dll
Syntax
public class Vertex : IVertex
Constructors
| Edit this page View SourceVertex(double, double, double)
Initializes a new vertex with specified coordinates.
Declaration
public Vertex(double x, double y, double z)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | X coordinate. |
| double | y | Y coordinate. |
| double | z | Z coordinate. |
Vertex(Vector3)
Initializes a new vertex from a Unity Vector3.
Declaration
public Vertex(Vector3 ver)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | ver | Unity Vector3 position. |
Properties
| Edit this page View SourcePosition
Position of the vertex in 3D space.
Declaration
public double[] Position { get; set; }
Property Value
| Type | Description |
|---|---|
| double[] |
Methods
| Edit this page View SourceToVec()
Converts the vertex position to a Unity Vector3.
Declaration
public Vector3 ToVec()
Returns
| Type | Description |
|---|---|
| Vector3 | Unity Vector3 representation of the vertex position. |