Rasterfarm-SDK
Loading...
Searching...
No Matches
Primitive2D Namespace Reference

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

Typedefs

typedef Vertex2f Vertex
 
typedef Vertex2fArray VertexArray
 
typedef List< VertexVertexList
 

Functions

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

Detailed Description

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

Typedef Documentation

◆ Vertex

◆ VertexArray

◆ VertexList

Function Documentation

◆ distance() [1/8]

float Primitive2D::distance ( const Circle & a,
const Circle & b,
bool returnSquared = false )

◆ distance() [2/8]

float Primitive2D::distance ( const Ray & r,
const Segment & s,
bool returnSquared = false )

◆ distance() [3/8]

float Primitive2D::distance ( const Vertex2f & point,
const AABoundingBox & box,
bool returnSquared = false )

◆ distance() [4/8]

float Primitive2D::distance ( const Vertex2f & point,
const Ray & ray,
bool returnSquared = false )

◆ distance() [5/8]

float Primitive2D::distance ( const Vertex2f & point,
const Segment & segment,
bool returnSquared = false )

◆ distance() [6/8]

float Primitive2D::distance ( const Vertex2f & point,
const Triangle & triangle,
bool returnSquared = false )

◆ distance() [7/8]

float Primitive2D::distance ( const Vertex2f & point,
const Vertex2f & linePoint,
const Vertex2f & line,
bool returnSquared = false )
Parameters
Pointin space
Pointin line
Avector representing a line

◆ distance() [8/8]

float Primitive2D::distance ( const Vertex2f & pointA,
const Vertex2f & pointB,
bool returnSquared = false )