s2.s2edge_clipping

Undocumented in source.

Members

Aliases

FaceSegmentVector
alias FaceSegmentVector = FaceSegment[]
Undocumented in source.
S2PointUVW
alias S2PointUVW = S2Point
Undocumented in source.

Functions

clipEdge
bool clipEdge(R2Point a, R2Point b, R2Rect clip, R2Point a_clipped, R2Point b_clipped)
Undocumented in source. Be warned that the author may not have intended to support it.
clipEdgeBound
bool clipEdgeBound(R2Point a, R2Point b, R2Rect clip, R2Rect bound)
Undocumented in source. Be warned that the author may not have intended to support it.
clipToFace
bool clipToFace(S2Point a, S2Point b, int face, R2Point a_uv, R2Point b_uv)
Undocumented in source. Be warned that the author may not have intended to support it.
clipToPaddedFace
bool clipToPaddedFace(S2Point a_xyz, S2Point b_xyz, int face, double padding, R2Point a_uv, R2Point b_uv)
Undocumented in source.
getClippedEdgeBound
R2Rect getClippedEdgeBound(R2Point a, R2Point b, R2Rect clip)
Undocumented in source. Be warned that the author may not have intended to support it.
getFaceSegments
void getFaceSegments(S2Point a, S2Point b, FaceSegmentVector segments)
Undocumented in source.
interpolateDouble
double interpolateDouble(double x, double a, double b, double a1, double b1)
Undocumented in source.
intersectsRect
bool intersectsRect(R2Point a, R2Point b, R2Rect rect)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

FaceSegment
struct FaceSegment
Undocumented in source.

Variables

EDGE_CLIP_ERROR_UV_COORD
enum double EDGE_CLIP_ERROR_UV_COORD;
Undocumented in source.
EDGE_CLIP_ERROR_UV_DIST
enum double EDGE_CLIP_ERROR_UV_DIST;
Undocumented in source.
FACE_CLIP_ERROR_RADIANS
enum double FACE_CLIP_ERROR_RADIANS;
Undocumented in source.
FACE_CLIP_ERROR_UV_COORD
enum double FACE_CLIP_ERROR_UV_COORD;
Undocumented in source.
FACE_CLIP_ERROR_UV_DIST
enum double FACE_CLIP_ERROR_UV_DIST;
Undocumented in source.
INTERSECTS_RECT_ERROR_UV_DIST
enum double INTERSECTS_RECT_ERROR_UV_DIST;
Undocumented in source.

Meta