Rasterfarm-SDK
Loading...
Searching...
No Matches
distance.h File Reference
#include "types.h"
#include "primitive2d.h"
#include "2d/triangle.h"
#include "2d/polygon.h"
#include "2d/ray.h"
#include "2d/segment.h"
#include "2d/circle.h"
#include "aaboundingbox.h"

Namespaces

namespace  Primitive2D
 API for calculating axis-aligned bounding-boxes, distance, intersections, and closet-points for 2D primitves.
 

Functions

float Primitive2D::distance (const Vertex2f &pointA, const Vertex2f &pointB, bool returnSquared=false)
 
float Primitive2D::distance (const Vertex2f &point, const Vertex2f &linePoint, const Vertex2f &line, bool returnSquared=false)
 
float Primitive2D::distance (const Vertex2f &point, const Ray &ray, bool returnSquared=false)
 
float Primitive2D::distance (const Ray &r, const Segment &s, bool returnSquared=false)
 
float Primitive2D::distance (const Vertex2f &point, const Segment &segment, bool returnSquared=false)
 
float Primitive2D::distance (const Vertex2f &point, const AABoundingBox &box, bool returnSquared=false)
 
float Primitive2D::distance (const Circle &a, const Circle &b, bool returnSquared=false)
 
float Primitive2D::distance (const Vertex2f &point, const Triangle &triangle, bool returnSquared=false)