.. default-domain:: csharp .. highlight:: csharp .. namespace:: KRPC.Client.Services.Drawing Drawing ======= .. class:: Drawing Provides functionality for drawing objects in the flight scene. .. method:: Line AddLine(System.Tuple start, System.Tuple end, SpaceCenter.ReferenceFrame referenceFrame, bool visible = true) Draw a line in the scene. :parameters: * **start** -- Position of the start of the line. * **end** -- Position of the end of the line. * **referenceFrame** -- Reference frame that the positions are in. * **visible** -- Whether the line is visible. :Game Scenes: Flight .. method:: Line AddDirection(System.Tuple direction, SpaceCenter.ReferenceFrame referenceFrame, float length = 10.0f, bool visible = true) Draw a direction vector in the scene, starting from the origin of the given reference frame. :parameters: * **direction** -- Direction to draw the line in. * **referenceFrame** -- Reference frame that the direction is in and defines the start position. * **length** -- The length of the line. * **visible** -- Whether the line is visible. :Game Scenes: Flight .. method:: Line AddDirectionFromCom(System.Tuple direction, SpaceCenter.ReferenceFrame referenceFrame, float length = 10.0f, bool visible = true) Draw a direction vector in the scene, from the center of mass of the active vessel. :parameters: * **direction** -- Direction to draw the line in. * **referenceFrame** -- Reference frame that the direction is in. * **length** -- The length of the line. * **visible** -- Whether the line is visible. :Game Scenes: Flight .. method:: Polygon AddPolygon(System.Collections.Generic.IList> vertices, SpaceCenter.ReferenceFrame referenceFrame, bool visible = true) Draw a polygon in the scene, defined by a list of vertices. :parameters: * **vertices** -- Vertices of the polygon. * **referenceFrame** -- Reference frame that the vertices are in. * **visible** -- Whether the polygon is visible. :Game Scenes: Flight .. method:: Text AddText(string text, SpaceCenter.ReferenceFrame referenceFrame, System.Tuple position, System.Tuple rotation, bool visible = true) Draw text in the scene. :parameters: * **text** -- The string to draw. * **referenceFrame** -- Reference frame that the text position is in. * **position** -- Position of the text. * **rotation** -- Rotation of the text, as a quaternion. * **visible** -- Whether the text is visible. :Game Scenes: Flight .. method:: void Clear(bool clientOnly = false) Remove all objects being drawn. :parameters: * **clientOnly** -- If true, only remove objects created by the calling client. :Game Scenes: Flight