1 Star 0 Fork 4.9K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
OHOS-Line.md 7.11 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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.

1
https://gitee.com/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助