 |
Gorgon Game Engine
|
Go to the documentation of this file.
8 namespace Gorgon {
namespace Geometry {
15 template<
class P_ = Po
intf>
47 typename P_::BaseType
MinY()
const {
52 typename P_::BaseType
MaxY()
const {
57 typename P_::BaseType
MinX()
const {
62 typename P_::BaseType
MaxX()
const {
P_ End
Ending point of the line.
Definition: Line.h:84
P_::BaseType MaxY() const
Returns maximum Y point.
Definition: Line.h:52
Float Offset() const
Returns the offset of the line. Assumes the line is 2D.
Definition: Line.h:30
This class represents a set of points.
Definition: Line.h:16
float Float
Represents floating point data type.
Definition: Types.h:16
Line()=default
Empty constructor.
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
P_::BaseType MinX() const
Returns minimum X point.
Definition: Line.h:57
P_ Start
Starting point of the line.
Definition: Line.h:81
Float OffsetInv() const
Returns the inverse offset of the line, where the line formula is now x = a * y + b.
Definition: Line.h:42
int XDirection() const
Returns whether the line is moving left or right.
Definition: Line.h:76
Float SlopeInv() const
Returns the inverse slope of the line, where the line formula is now x = a * y + b.
Definition: Line.h:36
P_::BaseType MinY() const
Returns minimum Y point.
Definition: Line.h:47
int Sign(T_ val)
Definition: Types.h:126
Line(P_ start, P_ end)
Definition: Line.h:22
Float Slope() const
Returns the slope of the line. Assumes the line is 2D.
Definition: Line.h:25
std::vector< T_ >::const_iterator end(enum_type_id< T_ >)
Definition: Enum.h:288
P_::BaseType MaxX() const
Returns maximum X point.
Definition: Line.h:62
int YDirection() const
Returns whether the line is moving up or down.
Definition: Line.h:69