OHOS::Line

Overview

Related Modules:

Graphic

Description:

Defines a line, which consists of the start and end points.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name Description
Line () The default constructor used to create a Line instance.
Line (const Vector2< int16_t > &a, const Vector2< int16_t > &b) A constructor used to create a Line instance.
Line (int16_t x1, int16_t y1, int16_t x2, int16_t y2) A constructor used to create a Line instance.
~Line () A destructor used to delete the Line instance.
operator[] (uint8_t index) Vector2< int16_t > & Obtains the start or end point of the line based on the value of index.
operator[] (uint8_t index) const const Vector2< int16_t > Obtains the start or end point of the line based on the value of index.
operator new (size_t size) void Overrides the new function.
operator delete (void p) void Overrides the delete function.