Mapper  0.9.0
API documentation
Static Public Member Functions | Public Attributes | List of all members
OpenOrienteering::PathObject::Intersection Struct Reference

Returned by calcAllIntersectionsWith(). More...

#include <object.h>

Collaboration diagram for OpenOrienteering::PathObject::Intersection:
Collaboration graph
[legend]

Static Public Member Functions

static Intersection makeIntersectionAt (double a, double b, const PathCoord &a0, const PathCoord &a1, const PathCoord &b0, const PathCoord &b1, PathPartVector::size_type part_index, PathPartVector::size_type other_part_index)
 Creates an Intersection at the position specified by factors a and b between the a0/a1 and b0/b1 PathCoords in the given parts. More...
 

Public Attributes

MapCoordF coord
 Coordinate of the intersection. More...
 
PathPartVector::size_type part_index
 Part index of intersection. More...
 
PathCoord::length_type length
 Length of path until this intersection point. More...
 
PathPartVector::size_type other_part_index
 Part index of intersection in other path. More...
 
PathCoord::length_type other_length
 Length of other path until this intersection point. More...
 

Detailed Description

Returned by calcAllIntersectionsWith().

Member Function Documentation

◆ makeIntersectionAt()

PathObject::Intersection OpenOrienteering::PathObject::Intersection::makeIntersectionAt ( double  a,
double  b,
const PathCoord a0,
const PathCoord a1,
const PathCoord b0,
const PathCoord b1,
PathPartVector::size_type  part_index,
PathPartVector::size_type  other_part_index 
)
static

Creates an Intersection at the position specified by factors a and b between the a0/a1 and b0/b1 PathCoords in the given parts.

Member Data Documentation

◆ coord

MapCoordF OpenOrienteering::PathObject::Intersection::coord

Coordinate of the intersection.

◆ length

PathCoord::length_type OpenOrienteering::PathObject::Intersection::length

Length of path until this intersection point.

◆ other_length

PathCoord::length_type OpenOrienteering::PathObject::Intersection::other_length

Length of other path until this intersection point.

◆ other_part_index

PathPartVector::size_type OpenOrienteering::PathObject::Intersection::other_part_index

Part index of intersection in other path.

◆ part_index

PathPartVector::size_type OpenOrienteering::PathObject::Intersection::part_index

Part index of intersection.


The documentation for this struct was generated from the following files: