# struct geom::Capsule

## Overview

Definition of a 3 dimensional capsule. More…

    #include <GeometryStructures.h>

    struct Capsule {
        // fields

        LineSegment3 central;
        float radius { 1.0f };

        // construction

        Capsule();
        Capsule(const LineSegment3& line_segment, float init_radius);
        Capsule(const glm::vec3& point1, const glm::vec3& point2, float init_radius);
    };

## Detailed Documentation

Definition of a 3 dimensional capsule.

### Fields

    LineSegment3 central

Central line of a capsule.

    float radius { 1.0f }

Distance of a capsule surface from the central line.