Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Shade_Ellipse Struct Reference

#include <eepicgeom.H>

Inheritance diagram for Shade_Ellipse:
[legend]
Collaboration diagram for Shade_Ellipse:
[legend]

Public Member Functions

 Shade_Ellipse ()
 
 Shade_Ellipse (const Ellipse &p)
 
 Shade_Ellipse (const Point &center, const Geom_Number &hr, const Geom_Number &vr)
 
- Public Member Functions inherited from Aleph::Ellipse
 Ellipse (Point center, const Geom_Number &hr, const Geom_Number &vr)
 Constructs an ellipse.
 
 Ellipse (const Ellipse &e)=default
 Copy constructor.
 
 Ellipse ()
 Default constructor.
 
bool operator== (const Ellipse &e) const noexcept
 Checks for exact equality.
 
bool operator!= (const Ellipse &e) const noexcept
 Checks for inequality.
 
const Pointget_center () const
 Gets the center point of the ellipse.
 
const Geom_Numberget_hradius () const
 Gets the horizontal radius.
 
const Geom_Numberget_vradius () const
 Gets the vertical radius.
 
Geom_Number area () const
 Calculates the area of the ellipse.
 
Geom_Number perimeter () const
 Approximates the perimeter of the ellipse.
 
Point sample (const Geom_Number &angle) const
 Samples a point on the ellipse's boundary at a given angle.
 
std::string to_string () const
 Returns a string representation of the ellipse.
 
Point highest_point () const
 Gets the highest point on the ellipse boundary.
 
Point lowest_point () const
 Gets the lowest point on the ellipse boundary.
 
Point leftmost_point () const
 Gets the leftmost point on the ellipse boundary.
 
Point rightmost_point () const
 Gets the rightmost point on the ellipse boundary.
 
void compute_tangents (Segment &s1, Segment &s2, const Geom_Number &m) const
 Computes the two tangent segments to this ellipse with a given slope.
 
bool intersects_with (const Segment &s) const
 Checks if a segment intersects the ellipse.
 
bool contains (const Point &p) const
 Checks if a point lies inside or on the boundary of this ellipse.
 
bool contains_to (const Point &p) const
 
bool intersects_with (const Point &p) const
 Checks if a point lies exactly on the ellipse boundary.
 
Segment intersection_with (const Segment &sg) const
 Computes the intersection segment between a line segment and this ellipse.
 
- Public Member Functions inherited from Aleph::Geom_Object
 Geom_Object ()=default
 
virtual ~Geom_Object ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from Aleph::Ellipse
static bool is_clockwise ()
 Returns the orientation of the ellipse.
 

Detailed Description

Definition at line 1262 of file eepicgeom.H.

Constructor & Destructor Documentation

◆ Shade_Ellipse() [1/3]

Shade_Ellipse::Shade_Ellipse ( )
inline

Definition at line 1262 of file eepicgeom.H.

◆ Shade_Ellipse() [2/3]

Shade_Ellipse::Shade_Ellipse ( const Ellipse p)
inline

Definition at line 1262 of file eepicgeom.H.

◆ Shade_Ellipse() [3/3]

Shade_Ellipse::Shade_Ellipse ( const Point center,
const Geom_Number hr,
const Geom_Number vr 
)
inline

Definition at line 1262 of file eepicgeom.H.


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