Angulos
Loading...
Searching...
No Matches
Angulos._3d.ObjectRepresentation.Shapes.LineSegment3D(Vector3 vertex1, Vector3 vertex2) Class Reference

Represents a 3d line segment. LineSegment2D is the same for 2d. More...

Inheritance diagram for Angulos._3d.ObjectRepresentation.Shapes.LineSegment3D:

Public Member Functions

bool Equals (LineSegment3D other)
 Returns true if this equals the other edge.
void Update (Vector3 a, Vector3 b)
 Updates a line segments' ends and length to match new ends.
int GetSize ()
 Gets the size (in bytes) of this object.

Properties

Vector3 Vertex1 = vertex1 [get]
 The first vertex of the edge.
Vector3 Vertex2 = vertex2 [get]
 The second vertex of the edge.
double Length = MathUtils.GetVector3LengthD(vertex1 - vertex2) [get]

Detailed Description

Represents a 3d line segment. LineSegment2D is the same for 2d.

Parameters
vertex1
vertex2

Member Function Documentation

◆ Equals()

bool Angulos._3d.ObjectRepresentation.Shapes.LineSegment3D.Equals ( LineSegment3D other)
inline

Returns true if this equals the other edge.

Parameters
other
Returns

◆ GetSize()

int Angulos._3d.ObjectRepresentation.Shapes.LineSegment3D.GetSize ( )
inline

Gets the size (in bytes) of this object.

Returns

◆ Update()

void Angulos._3d.ObjectRepresentation.Shapes.LineSegment3D.Update ( Vector3 a,
Vector3 b )
inline

Updates a line segments' ends and length to match new ends.

Parameters
a
b

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