Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: LbsPositionCalc.h
Link against: lbsselflocate.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class TPositionCalc

class TPositionCalc;

Description

Members

Defined in TPositionCalc:
GetBearing(), GetBearing(), GetDistance(), GetDistance(), GetSpeed(), GetSpeed(), Translate()


Member functions


GetDistance()

static IMPORT_C TInt GetDistance(const TCoordinate &aStartCoor, const TCoordinate &aStopCoor, TReal32 &aDistance);

Description

Calculate distance between two TCoordinates

Parameters

const TCoordinate &aStartCoor

const TCoordinate &aStopCoor

TReal32 &aDistance

Return value

TInt

The calculation error


GetDistance()

static IMPORT_C TInt GetDistance(const TLocality &aStartLoc, const TLocality &aStopLoc, TReal32 &aDistance, TReal32 &aDelta);

Description

Calculate distance between two TLocality

Parameters

const TLocality &aStartLoc

const TLocality &aStopLoc

TReal32 &aDistance

TReal32 &aDelta

Return value

TInt

The calculation error


GetBearing()

static IMPORT_C TInt GetBearing(const TCoordinate &aStartCoor, const TCoordinate &aStopCoor, TReal32 &aBearing);

Description

Calculate distance between two TCoordinates

Parameters

const TCoordinate &aStartCoor

const TCoordinate &aStopCoor

TReal32 &aBearing

Return value

TInt

The calculation error


GetBearing()

static IMPORT_C TInt GetBearing(const TLocality &aStartLoc, const TLocality &aStopLoc, TReal32 &aBearing, TReal32 &aDelta);

Description

Calculate distance between two TLocality

Parameters

const TLocality &aStartLoc

const TLocality &aStopLoc

TReal32 &aBearing

TReal32 &aDelta

Return value

TInt

The calculation error


GetSpeed()

static IMPORT_C TInt GetSpeed(const TPosition &aStartPos, const TPosition &aStopPos, TReal32 &aSpeed);

Description

Calculate distance between two TPositions

Parameters

const TPosition &aStartPos

const TPosition &aStopPos

TReal32 &aSpeed

Return value

TInt

The calculation error


GetSpeed()

static IMPORT_C TInt GetSpeed(const TPosition &aStartPos, const TPosition &aStopPos, TReal32 &aSpeed, TReal32 &aDelta);

Description

Calculate distance between two TPositions

Parameters

const TPosition &aStartPos

const TPosition &aStopPos

TReal32 &aSpeed

TReal32 &aDelta

Return value

TInt

The calculation error


Translate()

static IMPORT_C TInt Translate(const TCoordinate &aStartCoor, const TReal32 &aDistance, const TReal32 &aBearing, TCoordinate &aStopCoor);

Description

Translate the stop coordinate by start point and given distance and bearing between two TCoordinates

Parameters

const TCoordinate &aStartCoor

const TReal32 &aDistance

const TReal32 &aBearing

TCoordinate &aStopCoor

Return value

TInt

The calculation error