struct ThreeDViewer.Mathematics.Axis

Overview

Struct representing an axis via two points. More…

struct Axis
{
    // properties

    Vector3 Point0;
    Vector3 Point1;
    Vector3 FromOrigin;

    // methods

    Axis(Vector3 point0, Vector3 point1);
};

Detailed Documentation

Struct representing an axis via two points.

Properties

Vector3 Point0

Gets the first point of the axis.

Vector3 Point1

Gets the second point of the axis.

Vector3 FromOrigin

Gets the axis with a point starting from the origin. Calculated by : Point1 - Point0.

Methods

Axis(Vector3 point0, Vector3 point1)

Initializes a new instance of the Axis struct.

Parameters:

point0

First point of the axis.

point1

Second point of the axis.