Points&Forces (core)
Software tools facilitating the task of surveying architecture
Classes | Functions
a_point2.h File Reference
#include <iostream>
#include <stdlib.h>
#include "a_geom_base.h"
+ Include dependency graph for a_point2.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  a_point2
 

Functions

a_point2 operator+ (const a_point2 &a, const a_point2 &b)
 
a_point2 operator- (const a_point2 &a, const a_point2 &b)
 
double operator* (const a_point2 &a, const a_point2 &b)
 
a_point2 operator* (const double v, const a_point2 &a)
 
a_point2 operator* (const a_point2 &a, double v)
 
a_point2 operator/ (const a_point2 &a, double v)
 
double dist (const a_point2 &a, const a_point2 &b)
 
double angle (const a_point2 &a, const a_point2 &b)
 
a_point2 average (const a_point2 &a, const a_point2 &b, double f=0.5)
 
a_point2 average_rot (const a_point2 &a, const a_point2 &b, double f=0.5)
 

Function Documentation

◆ angle()

double angle ( const a_point2 a,
const a_point2 b 
)

Definition at line 160 of file a_point2.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ average()

a_point2 average ( const a_point2 a,
const a_point2 b,
double  f = 0.5 
)
inline

Definition at line 92 of file a_point2.h.

◆ average_rot()

a_point2 average_rot ( const a_point2 a,
const a_point2 b,
double  f = 0.5 
)

Definition at line 167 of file a_point2.cxx.

+ Here is the call graph for this function:

◆ dist()

double dist ( const a_point2 a,
const a_point2 b 
)
inline

Definition at line 90 of file a_point2.h.

◆ operator*() [1/3]

double operator* ( const a_point2 a,
const a_point2 b 
)

Definition at line 118 of file a_point2.cxx.

◆ operator*() [2/3]

a_point2 operator* ( const a_point2 a,
double  v 
)

Definition at line 130 of file a_point2.cxx.

◆ operator*() [3/3]

a_point2 operator* ( const double  v,
const a_point2 a 
)

Definition at line 124 of file a_point2.cxx.

◆ operator+()

a_point2 operator+ ( const a_point2 a,
const a_point2 b 
)

Definition at line 106 of file a_point2.cxx.

◆ operator-()

a_point2 operator- ( const a_point2 a,
const a_point2 b 
)

Definition at line 112 of file a_point2.cxx.

◆ operator/()

a_point2 operator/ ( const a_point2 a,
double  v 
)

Definition at line 136 of file a_point2.cxx.