Plotly.cpp 0.1.0
A C++ plotting library for expressive, interactive, real-time & streaming data visualization
Loading...
Searching...
No Matches
gallery_star.cpp File Reference

Geometric Star Shape Visualization. More...

#include "plotly/plotly.hpp"
#include "utils/arg_parser.hpp"
#include <cmath>
#include <utility>
#include <vector>
Include dependency graph for gallery_star.cpp:

Functions

auto createStarShape (double cx, double cy, double rOuter, double rInner) -> std::pair< std::vector< double >, std::vector< double > >
auto main (int argc, char *argv[]) -> int

Detailed Description

Geometric Star Shape Visualization.

Author
plotly.cpp contributors
Date
2025

Function Documentation

◆ createStarShape()

auto createStarShape ( double cx,
double cy,
double rOuter,
double rInner ) -> std::pair<std::vector<double>, std::vector<double>>

Creates a star shape with the given parameters

Parameters
cxCenter X coordinate
cyCenter Y coordinate
rOuterOuter radius (tips of star)
rInnerInner radius (valleys of star)
Examples
gallery_star.cpp.

◆ main()

auto main ( int argc,
char * argv[] ) -> int