Chrysalis - Pattern
Loading...
Searching...
No Matches
Chrysalis::CG Namespace Reference

Typedefs

using LinearKernel = CGAL::Exact_predicates_inexact_constructions_kernel
using CircularKernel = CGAL::Exact_circular_kernel_2
using Transformation = CGAL::Aff_transformation_2<LinearKernel>
using Ray = CGAL::Ray_2<LinearKernel>
using Line = CGAL::Line_2<LinearKernel>
using Point = CGAL::Point_2<LinearKernel>
using Vector = CGAL::Vector_2<LinearKernel>
using Segment = CGAL::Segment_2<LinearKernel>
using CPoint = CGAL::Point_2<CircularKernel>
using Circle = CGAL::Circle_2<CircularKernel>
using CArcPoint = CGAL::Circular_arc_point_2<CircularKernel>
using CCIntersection = CGAL::CK2_Intersection_traits<CircularKernel, Circle, Circle>::type

Functions

double sin (double value)
double cos (double value)
double round (double value)
double radians (double degrees)
Vector rotate (const Vector &vector, double angle)
double angle (const Vector &vector1, const Vector &vector2)
double angle (const Point &pointFrom, const Point &pointTo)
double length (const Point &pointFrom, const Point &pointTo)
Point mirror (const Point &point, const Point &center)
Point relativePoint (const Point &pointFrom, const Vector &vector)
Point relativePoint (const Point &pointFrom, double angle, double length)
Point projection (const Point &point, const Line &line)
template<typename T1, typename T2>
std::optional< Point > intersection (const T1 &obj1, const T2 &obj2)
std::optional< Point > xIntersection (const Point &pointFrom, const Point &pointTo)
std::optional< Point > yIntersection (const Point &pointFrom, const Point &pointTo)
Point circlesIntersection (const Point &anchor, CPoint center1, double radius1, CPoint center2, double radius2)

Typedef Documentation

◆ CArcPoint

using Chrysalis::CG::CArcPoint = CGAL::Circular_arc_point_2<CircularKernel>

◆ CCIntersection

using Chrysalis::CG::CCIntersection = CGAL::CK2_Intersection_traits<CircularKernel, Circle, Circle>::type

◆ Circle

using Chrysalis::CG::Circle = CGAL::Circle_2<CircularKernel>

◆ CircularKernel

using Chrysalis::CG::CircularKernel = CGAL::Exact_circular_kernel_2

◆ CPoint

using Chrysalis::CG::CPoint = CGAL::Point_2<CircularKernel>

◆ Line

using Chrysalis::CG::Line = CGAL::Line_2<LinearKernel>

◆ LinearKernel

using Chrysalis::CG::LinearKernel = CGAL::Exact_predicates_inexact_constructions_kernel

◆ Point

using Chrysalis::CG::Point = CGAL::Point_2<LinearKernel>

◆ Ray

using Chrysalis::CG::Ray = CGAL::Ray_2<LinearKernel>

◆ Segment

using Chrysalis::CG::Segment = CGAL::Segment_2<LinearKernel>

◆ Transformation

using Chrysalis::CG::Transformation = CGAL::Aff_transformation_2<LinearKernel>

◆ Vector

using Chrysalis::CG::Vector = CGAL::Vector_2<LinearKernel>

Function Documentation

◆ angle() [1/2]

double Chrysalis::CG::angle ( const Point & pointFrom,
const Point & pointTo )

◆ angle() [2/2]

double Chrysalis::CG::angle ( const Vector & vector1,
const Vector & vector2 )
Here is the caller graph for this function:

◆ circlesIntersection()

CG::Point Chrysalis::CG::circlesIntersection ( const Point & anchor,
CPoint center1,
double radius1,
CPoint center2,
double radius2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cos()

double Chrysalis::CG::cos ( double value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ intersection()

template<typename T1, typename T2>
std::optional< Point > Chrysalis::CG::intersection ( const T1 & obj1,
const T2 & obj2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ length()

double Chrysalis::CG::length ( const Point & pointFrom,
const Point & pointTo )
Here is the caller graph for this function:

◆ mirror()

CG::Point Chrysalis::CG::mirror ( const Point & point,
const Point & center )
Here is the caller graph for this function:

◆ projection()

CG::Point Chrysalis::CG::projection ( const Point & point,
const Line & line )
Here is the caller graph for this function:

◆ radians()

double Chrysalis::CG::radians ( double degrees)
Here is the caller graph for this function:

◆ relativePoint() [1/2]

CG::Point Chrysalis::CG::relativePoint ( const Point & pointFrom,
const Vector & vector )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ relativePoint() [2/2]

CG::Point Chrysalis::CG::relativePoint ( const Point & pointFrom,
double angle,
double length )
Here is the call graph for this function:

◆ rotate()

CG::Vector Chrysalis::CG::rotate ( const Vector & vector,
double angle )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ round()

double Chrysalis::CG::round ( double value)
Here is the caller graph for this function:

◆ sin()

double Chrysalis::CG::sin ( double value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xIntersection()

std::optional< CG::Point > Chrysalis::CG::xIntersection ( const Point & pointFrom,
const Point & pointTo )
Here is the call graph for this function:

◆ yIntersection()

std::optional< CG::Point > Chrysalis::CG::yIntersection ( const Point & pointFrom,
const Point & pointTo )
Here is the call graph for this function: