Enrollment 28.2.0
Loading...
Searching...
No Matches

It holds line points. More...

#include <ImageAttribute.h>

Collaboration diagram for Line:

Public Member Functions

void WriteTo (Writer &writer) const final
 Write itself into writer.
 Line (Point beginPoint, Point endPoint)
 Constructor store given coordinates.
 Line (Point b, float angle, unsigned int length)
 Constructor calculates end point based on angle and length.

Public Attributes

Point begin
 line begin point
Point end
 line end point

Detailed Description

It holds line points.

Constructor & Destructor Documentation

◆ Line() [1/2]

Line ( Point beginPoint,
Point endPoint )
inline

Constructor store given coordinates.

Parameters
beginPointline begin point
endPointline end point

References begin, and end.

◆ Line() [2/2]

Line ( Point b,
float angle,
unsigned int length )
inline

Constructor calculates end point based on angle and length.

Parameters
bline begin
angleangle of line in degrees, with zero degrees pointing horizontally and to the right and increasing degrees proceeding counter-clockwise.
lengthline length

References begin, and end.

Member Function Documentation

◆ WriteTo()

void WriteTo ( Writer & writer) const
inlinefinalvirtual

Write itself into writer.

Parameters
writerWriter to use to serialize this Serializable

Implements Serializable.

References begin, and end.


The documentation for this class was generated from the following file: