Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
rectangle.c File Reference
#include "config.h"
#include <label/index.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <common/arith.h>
#include <label/rectangle.h>
#include <cgraph/cgraph.h>
#include <util/exit.h>
Include dependency graph for rectangle.c:

Go to the source code of this file.

Macros

#define Undefined(x)   ((x)->boundary[0] > (x)->boundary[NUMDIMS])
 

Functions

void InitRect (Rect_t *r)
 
Rect_t NullRect (void)
 
uint64_t RectArea (const Rect_t *r)
 
Rect_t CombineRect (const Rect_t *r, const Rect_t *rr)
 
bool Overlap (const Rect_t *r, const Rect_t *s)
 

Macro Definition Documentation

◆ Undefined

#define Undefined (   x)    ((x)->boundary[0] > (x)->boundary[NUMDIMS])

Definition at line 24 of file rectangle.c.

Function Documentation

◆ CombineRect()

Rect_t CombineRect ( const Rect_t r,
const Rect_t rr 
)

Definition at line 88 of file rectangle.c.

References Rect::boundary, MAX, MIN, NUMDIMS, and Undefined.

Referenced by Classify(), GetBranches(), MethodZero(), NodeCover(), PickBranch(), PickSeeds(), and RTreeInsert2().

Here is the caller graph for this function:

◆ InitRect()

void InitRect ( Rect_t r)

Definition at line 29 of file rectangle.c.

References Rect::boundary, and NUMSIDES.

Referenced by InitBranch(), and NodeCover().

Here is the caller graph for this function:

◆ NullRect()

Rect_t NullRect ( void  )

Definition at line 39 of file rectangle.c.

References Rect::boundary, and NUMDIMS.

Referenced by InitPVars().

Here is the caller graph for this function:

◆ Overlap()

bool Overlap ( const Rect_t r,
const Rect_t s 
)

Definition at line 108 of file rectangle.c.

References Rect::boundary, and NUMDIMS.

Referenced by aabbaabb(), and RTreeSearch().

Here is the caller graph for this function:

◆ RectArea()

uint64_t RectArea ( const Rect_t r)

Definition at line 66 of file rectangle.c.

References agerrorf(), Rect::boundary, dim, graphviz_exit(), NUMDIMS, and Undefined.

Referenced by Classify(), GetBranches(), MethodZero(), PickBranch(), and PickSeeds().

Here is the call graph for this function:
Here is the caller graph for this function: