WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
g2d.h File Reference
#include "zarray.h"

Go to the source code of this file.

Classes

struct  g2d_line_t
 
struct  g2d_line_segment_t
 

Functions

void g2d_line_init_from_points (g2d_line_t *line, const double p0[2], const double p1[2])
 
double g2d_line_get_coordinate (const g2d_line_t *line, const double q[2])
 
int g2d_line_intersect_line (const g2d_line_t *linea, const g2d_line_t *lineb, double *p)
 
void g2d_line_segment_init_from_points (g2d_line_segment_t *seg, const double p0[2], const double p1[2])
 
int g2d_line_segment_intersect_segment (const g2d_line_segment_t *sega, const g2d_line_segment_t *segb, double *p)
 
void g2d_line_segment_closest_point (const g2d_line_segment_t *seg, const double *q, double *p)
 
double g2d_line_segment_closest_point_distance (const g2d_line_segment_t *seg, const double *q)
 
zarray_tg2d_polygon_create_data (double v[][2], int sz)
 
zarray_tg2d_polygon_create_zeros (int sz)
 
zarray_tg2d_polygon_create_empty (void)
 
void g2d_polygon_add (zarray_t *poly, double v[2])
 
void g2d_polygon_make_ccw (zarray_t *poly)
 
int g2d_polygon_contains_point (const zarray_t *poly, double q[2])
 
int g2d_polygon_intersects_polygon (const zarray_t *polya, const zarray_t *polyb)
 
int g2d_polygon_contains_polygon (const zarray_t *polya, const zarray_t *polyb)
 
int g2d_polygon_overlaps_polygon (const zarray_t *polya, const zarray_t *polyb)
 
int g2d_polygon_rasterize (const zarray_t *poly, double y, double *x)
 

Function Documentation

◆ g2d_line_get_coordinate()

double g2d_line_get_coordinate ( const g2d_line_t * line,
const double q[2] )

◆ g2d_line_init_from_points()

void g2d_line_init_from_points ( g2d_line_t * line,
const double p0[2],
const double p1[2] )

◆ g2d_line_intersect_line()

int g2d_line_intersect_line ( const g2d_line_t * linea,
const g2d_line_t * lineb,
double * p )

◆ g2d_line_segment_closest_point()

void g2d_line_segment_closest_point ( const g2d_line_segment_t * seg,
const double * q,
double * p )

◆ g2d_line_segment_closest_point_distance()

double g2d_line_segment_closest_point_distance ( const g2d_line_segment_t * seg,
const double * q )

◆ g2d_line_segment_init_from_points()

void g2d_line_segment_init_from_points ( g2d_line_segment_t * seg,
const double p0[2],
const double p1[2] )

◆ g2d_line_segment_intersect_segment()

int g2d_line_segment_intersect_segment ( const g2d_line_segment_t * sega,
const g2d_line_segment_t * segb,
double * p )

◆ g2d_polygon_add()

void g2d_polygon_add ( zarray_t * poly,
double v[2] )

◆ g2d_polygon_contains_point()

int g2d_polygon_contains_point ( const zarray_t * poly,
double q[2] )

◆ g2d_polygon_contains_polygon()

int g2d_polygon_contains_polygon ( const zarray_t * polya,
const zarray_t * polyb )

◆ g2d_polygon_create_data()

zarray_t * g2d_polygon_create_data ( double v[][2],
int sz )

◆ g2d_polygon_create_empty()

zarray_t * g2d_polygon_create_empty ( void )

◆ g2d_polygon_create_zeros()

zarray_t * g2d_polygon_create_zeros ( int sz)

◆ g2d_polygon_intersects_polygon()

int g2d_polygon_intersects_polygon ( const zarray_t * polya,
const zarray_t * polyb )

◆ g2d_polygon_make_ccw()

void g2d_polygon_make_ccw ( zarray_t * poly)

◆ g2d_polygon_overlaps_polygon()

int g2d_polygon_overlaps_polygon ( const zarray_t * polya,
const zarray_t * polyb )

◆ g2d_polygon_rasterize()

int g2d_polygon_rasterize ( const zarray_t * poly,
double y,
double * x )