void MoveTo( Vector2 point )

book_4_sparkGenerated
code_blocksInput

Description

The MoveTo method is a member of the Editor.GraphicsLine class. It is used to move the current drawing position to a specified point without drawing a line. This method is typically used to set the starting point for a new sub-path in a graphical line drawing operation.

Usage

To use the MoveTo method, you need to have an instance of the GraphicsLine class. Call the method with a Vector2 parameter that specifies the new position to move to. This method does not return any value.

Ensure that the Vector2 parameter represents a valid point within the drawing context.

Example

// Create an instance of GraphicsLine
GraphicsLine graphicsLine = new GraphicsLine();

// Define a new point to move to
Vector2 newPoint = new Vector2(100, 150);

// Move the current position to the new point
graphicsLine.MoveTo(newPoint);