-
Notifications
You must be signed in to change notification settings - Fork 1
Physics.Line
Matthew Daly edited this page Jan 4, 2023
·
4 revisions
Namespace: Verdant.Physics
internal class Line : Shape
A line shape.
Navigate
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. |
public override void Draw(SpriteBatch spriteBatch, Camera camera, Color color)
Parameter | Description |
---|---|
SpriteBatch spriteBatch
|
|
Camera camera
|
|
Color color
|
The Verdant wiki is automatically generated from documentation comments in the codebase by markify.