Piccolo.NET

PPath.CreateLine Method 

Creates a new PPath with the shape of a line specified by the given coordinates.

public static PPath CreateLine(
   float x1,
   float y1,
   float x2,
   float y2
);

Parameters

x1
The x-coordinate of the start-point of the line.
y1
The y-coordinate of the start-point of the line.
x2
The x-coordinate of the end-point of the line.
y2
The y-coordinate of the end-point of the line.

Return Value

The new PPath node.

See Also

PPath Class | UMD.HCIL.Piccolo.Nodes Namespace