class MAGES::MeshDeformations::Utilities::Debug

Overview

Debug utility class. More…

class Debug
{
public:
    // methods

    static void DrawPoint(in float3 position, float duration = 0f, float size = .1f);

    static void DrawAxis(
        in float3 position,
        in float3 forward,
        in float3 up,
        in float duration = 0f,
        in float size = .1f
    );

    static void DrawAxis(
        in float3 position,
        in float3 forward,
        in float3 up,
        in float3 right,
        in float duration = 0f,
        in float size = .1f
    );

    static void DrawAABB(
        in float3 min,
        in float3 max,
        in Color color,
        in float duration
    );

    static void DrawTetrahedron(
        in float3 posA,
        in float3 posB,
        in float3 posC,
        in float3 posD,
        in Color color,
        in float duration
    );
};

Detailed Documentation

Debug utility class.

Methods

static void DrawPoint(in float3 position, float duration = 0f, float size = .1f)

Draws a point in the scene view.

Parameters:

position

The position.

duration

The duration.

size

The size.

static void DrawAxis(
    in float3 position,
    in float3 forward,
    in float3 up,
    in float duration = 0f,
    in float size = .1f
)

Draws an axis gizmo at the specified position.

Parameters:

position

Position.

forward

Forward vector.

up

Up vector.

duration

The duration.

size

Gizmo scale.

static void DrawAxis(
    in float3 position,
    in float3 forward,
    in float3 up,
    in float3 right,
    in float duration = 0f,
    in float size = .1f
)

Draws an axis gizmo at the specified position.

Parameters:

position

Position.

forward

Forward vector.

up

Up vector.

right

Right vector.

duration

The duration.

size

Gizmo scale.

static void DrawTetrahedron(
    in float3 posA,
    in float3 posB,
    in float3 posC,
    in float3 posD,
    in Color color,
    in float duration
)

Draws a tetrahedron in the scene.

Parameters:

posA

Position of the first vertex.

posB

Position of the second vertex.

posC

Position of the third vertex.

posD

Position of the fourth vertex.

color

Color of the tetrahedron lines.

duration

Duration for which the lines will be visible.