Skip to content

Commit 75dfa11

Browse files
committed
minor fixes for box
1 parent 77b6f07 commit 75dfa11

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

box.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ sbox_line_pos(const SLine *sl, const SBOX *sb)
417417
}
418418

419419
/*
420-
* Returns the relationship between a box and a path as PGS_BOX_PATH_REL int8
421-
* value.
420+
* Returns the relationship between a box and a path as
421+
* PGS_BOX_PATH_REL int8 value.
422422
*/
423423
static int8
424424
sbox_path_pos(const SPATH *path, const SBOX *box)
@@ -474,8 +474,8 @@ sbox_path_pos(const SPATH *path, const SBOX *box)
474474
}
475475

476476
/*
477-
* Returns the relationship between a polygon and a box as PGS_BOX_POLY_REL int8
478-
* value.
477+
* Returns the relationship between a polygon and a box as
478+
* PGS_BOX_POLY_REL int8 value.
479479
*/
480480
static int8
481481
sbox_poly_pos(const SPOLY *poly, const SBOX *box)
@@ -822,8 +822,8 @@ sbox_eq(SBOX *b1, SBOX *b2)
822822
bool
823823
sbox_cont_point(const SBOX *b, const SPoint *p)
824824
{
825-
if ((FPeq(p->lat, b->ne.lat) && FPeq(p->lat, PIH))
826-
|| (FPeq(p->lat, b->sw.lat) && FPeq(p->lat, -PIH)))
825+
if ((FPeq(p->lat, b->ne.lat) && FPeq(p->lat, PIH)) ||
826+
(FPeq(p->lat, b->sw.lat) && FPeq(p->lat, -PIH)))
827827
{
828828
return true;
829829
}

box.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@ Datum spherebox_cont_box_com(PG_FUNCTION_ARGS);
416416
Datum spherebox_cont_box_com_neg(PG_FUNCTION_ARGS);
417417

418418
/*
419-
* Checks whether boxes overlap.
419+
* Checks whether two boxes overlap.
420420
*/
421421
Datum spherebox_overlap_box(PG_FUNCTION_ARGS);
422422

423423
/*
424-
* Checks whether boxes don't overlap.
424+
* Checks whether two boxes don't overlap.
425425
*/
426426
Datum spherebox_overlap_box_neg(PG_FUNCTION_ARGS);
427427

0 commit comments

Comments
 (0)