.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::Drawing Arc === .. class:: Arc An arc of a circle. Created using :func:`add_arc`. .. function:: std::tuple center() .. function:: void set_center(std::tuple value) Position of the center of the arc. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: std::tuple normal() .. function:: void set_normal(std::tuple value) Normal of the plane of the arc. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: std::tuple start_direction() .. function:: void set_start_direction(std::tuple value) Direction from the center to the start of the arc. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: double angle() .. function:: void set_angle(double value) Angle of the arc, in radians. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: double radius() .. function:: void set_radius(double value) Radius of the arc, in meters. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: SpaceCenter::ReferenceFrame reference_frame() .. function:: void set_reference_frame(SpaceCenter::ReferenceFrame value) Reference frame for the positions of the object. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: bool visible() .. function:: void set_visible(bool value) Whether the object is visible. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: StdLib::ColorRGB color() .. function:: void set_color(StdLib::ColorRGB value) The color of the path. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. note:: For a path drawn with more than one color, this is the color at its start. .. function:: std::vector colors() .. function:: void set_colors(std::vector value) The colors of the path, blended evenly from its start to its end. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. note:: Throws an exception if the list is empty or holds more than 8 colors. .. function:: float thickness() .. function:: void set_thickness(float value) The thickness of the path. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: bool start_arrow() .. function:: void set_start_arrow(bool value) Whether an arrow head is drawn at the start. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: bool end_arrow() .. function:: void set_end_arrow(bool value) Whether an arrow head is drawn at the end. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: float arrow_size() .. function:: void set_arrow_size(float value) The size of the arrow heads, relative to the thickness. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: bool dashed() .. function:: void set_dashed(bool value) Whether the path is drawn as a dashed line. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: std::string label() .. function:: void set_label(std::string value) Text drawn halfway along the path, facing the camera. Empty for no label. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: std::string material() .. function:: void set_material(std::string value) Material used to render the object. Creates the material from a shader with the given name. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: void remove() Remove the object. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph