#pragma once
#include "inc/List.h"
#include "inc/Position.h"
#include "inc/Intervals.h"
#include "inc/debug.h"
namespace graphite2 {
class json;
class Slot;
class Segment;
#define SLOTCOLSETUINTPROP(x, y) …
#define SLOTCOLSETINTPROP(x, y) …
#define SLOTCOLSETPOSITIONPROP(x, y) …
class SlotCollision
{ … };
struct BBox;
struct SlantBox;
class ShiftCollider
{ … };
inline
ShiftCollider::ShiftCollider(GR_MAYBE_UNUSED json *dbgout)
: … { … }
class KernCollider
{ … };
inline
float sqr(float x) { … }
inline
KernCollider::KernCollider(GR_MAYBE_UNUSED json *dbg)
: _target(0),
_margin(0.0f),
_miny(-1e38f),
_maxy(1e38f),
_sliceWidth(0.0f),
_mingap(0.0f),
_xbound(0.0),
_hit(false)
{
#if !defined GRAPHITE2_NTRACING
_seg = 0;
#endif
};
};