Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class Vertex

    Unity-specific vertex implementation for convex hull calculations.

    Inheritance
    object
    Vertex
    Implements
    IVertex
    Namespace: NWH.DWP2.MiConvexHull
    Assembly: NWH.DWP2.dll
    Syntax
    public class Vertex : IVertex

    Constructors

    | Edit this page View Source

    Vertex(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.

    | Edit this page View Source

    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 Source

    Position

    Position of the vertex in 3D space.

    Declaration
    public double[] Position { get; set; }
    Property Value
    Type Description
    double[]

    Methods

    | Edit this page View Source

    ToVec()

    Converts the vertex position to a Unity Vector3.

    Declaration
    public Vector3 ToVec()
    Returns
    Type Description
    Vector3

    Unity Vector3 representation of the vertex position.

    Implements

    IVertex
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics