Angulos
Loading...
Searching...
No Matches
Angulos._3d.ObjectRepresentation.Shapes.LineSegment2D Class Reference

Public Member Functions

 LineSegment2D (Vector2 vertex1, Vector2 vertex2)
 Constructs a line segement from a initial and secondary point. Also calculates the length of the line.
void Update (Vector2 vertex1, Vector2 vertex2)
 Updates a line segment to a initial and secondary point. Also calculates the new length.

Properties

Vector2 Vertex1 [get]
 The first end of the line segment.
Vector2 Vertex2 [get]
 The second end of the line segment.
double Length [get]
 The actual length of the line segment. Use MathUtils.GetVector2LengthD to find this.

Constructor & Destructor Documentation

◆ LineSegment2D()

Angulos._3d.ObjectRepresentation.Shapes.LineSegment2D.LineSegment2D ( Vector2 vertex1,
Vector2 vertex2 )
inline

Constructs a line segement from a initial and secondary point. Also calculates the length of the line.

Parameters
vertex1
vertex2

Member Function Documentation

◆ Update()

void Angulos._3d.ObjectRepresentation.Shapes.LineSegment2D.Update ( Vector2 vertex1,
Vector2 vertex2 )
inline

Updates a line segment to a initial and secondary point. Also calculates the new length.

Parameters
vertex1
vertex2

The documentation for this class was generated from the following file:
  • Sharp/_3d/ObjectRepresentation/Shapes/LineSegment2D.cs