<commit_before>#pragma once

#include "IShapeEditor.hpp"

namespace Component {
    class Shape;
}

namespace GUI {

    /// Plane shape editor for physics components.
    class PlaneShapeEditor : public IShapeEditor {
        public:
            /// Constructor
            PlaneShapeEditor() = default;

            /// Plane type label.
            /**
             * @return "Plane" string.
             */
            virtual const char* Label() const override { return "Plane"; }

            /// Show controls for editing a plane shape.
            /**
             * @param comp The shape component to edit.
             */
            virtual void Show(Component::Shape* comp) override;

            /// Set a sphere shape on the given physics component.
            /**
             * @param comp The shape component on which to set shape.
             */
            virtual void Apply(Component::Shape* comp) override;

            /// Set internal data according the given %Shape, provided that it
            /// is a plane.
            /**
             * @param shape The %Shape from which to initialize data.
             * @return True if shape type is plane, false otherwise.
             */
            virtual bool SetFromShape(const Physics::Shape& shape) override;

        private:
            float normal[3] = { 0.0f, 1.0f, 0.0f };
            float planeCoeff = 0.0f;
    };

}<commit_msg>Fix slightly wrong doxygen comment.<commit_after>#pragma once

#include "IShapeEditor.hpp"

namespace Component {
    class Shape;
}

namespace GUI {

    /// Plane shape editor for physics components.
    class PlaneShapeEditor : public IShapeEditor {
        public:
            /// Constructor
            PlaneShapeEditor() = default;

            /// Plane type label.
            /**
             * @return "Plane" string.
             */
            virtual const char* Label() const override { return "Plane"; }

            /// Show controls for editing a plane shape.
            /**
             * @param comp The shape component to edit.
             */
            virtual void Show(Component::Shape* comp) override;

            /// Set a sphere shape on the given shape component.
            /**
             * @param comp The shape component on which to set shape.
             */
            virtual void Apply(Component::Shape* comp) override;

            /// Set internal data according the given %Shape, provided that it
            /// is a plane.
            /**
             * @param shape The %Shape from which to initialize data.
             * @return True if shape type is plane, false otherwise.
             */
            virtual bool SetFromShape(const Physics::Shape& shape) override;

        private:
            float normal[3] = { 0.0f, 1.0f, 0.0f };
            float planeCoeff = 0.0f;
    };

}
{'fraction_non_alphanumeric': 0.09157894736842105, 'fraction_numerical': 0.00631578947368421, 'mean_word_length': 1.500877192982456, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1358885', 'n_tokens_mistral': 708, 'n_tokens_neox': 680, 'n_words': 258}