Skip to content

Physics.Line

Matthew Daly edited this page Jan 4, 2023 · 4 revisions

Namespace: Verdant.Physics

class Line

internal class Line : Shape

A line shape.

Navigate

Constructors

public Line

public Line(float x1, float y1, float x2, float y2)

Initialize a new Line shape.

Parameter Description
float x1 The X component of the Line's start position.
float y1 The Y component of the Line's start position.
float x2 The X component of the Line's end position.
float y2 The Y component of the Line's end position.

Methods

void Draw

public override void Draw(SpriteBatch spriteBatch, Camera camera, Color color)
Parameter Description
SpriteBatch spriteBatch
Camera camera
Color color
Clone this wiki locally