API functions that utilize the vec3d class are grouped here. For details of the class, including member functions, see vec3d.
Click here to return to the main page.
More...
|
double | dist (const vec3d &in a, const vec3d &in b) |
|
double | dist_squared (const vec3d &in a, const vec3d &in b) |
|
double | dot (const vec3d &in a, const vec3d &in b) |
|
vec3d | cross (const vec3d &in a, const vec3d &in b) |
|
double | angle (const vec3d &in a, const vec3d &in b) |
|
double | signed_angle (const vec3d &in a, const vec3d &in b, const vec3d &in ref) |
|
double | cos_angle (const vec3d &in a, const vec3d &in b) |
|
vec3d | RotateArbAxis (const vec3d &in p, double theta, const vec3d &in axis) |
|
◆ angle()
double angle |
( |
const vec3d &in |
a, |
|
|
const vec3d &in |
b |
|
) |
| |
Calculate the angle between two vec3d inputs (dot product divided by their magnitudes multiplied)
- Parameters
-
- Returns
- Angle in Radians
◆ cos_angle()
double cos_angle |
( |
const vec3d &in |
a, |
|
|
const vec3d &in |
b |
|
) |
| |
Calculate the cosine of angle between two vec3d inputs
- See also
- angle
- Parameters
-
- Returns
- Angle in Radians
◆ cross()
Calculate the cross product between two vec3d inputs
- Parameters
-
- Returns
- Cross product
◆ dist()
double dist |
( |
const vec3d &in |
a, |
|
|
const vec3d &in |
b |
|
) |
| |
Calculate the distance between two vec3d inputs
- See also
- dist_squared
- Parameters
-
- Returns
- Distance
◆ dist_squared()
double dist_squared |
( |
const vec3d &in |
a, |
|
|
const vec3d &in |
b |
|
) |
| |
Calculate distance squared between two vec3d inputs
- See also
- dist
- Parameters
-
- Returns
- Distance squared
◆ dot()
double dot |
( |
const vec3d &in |
a, |
|
|
const vec3d &in |
b |
|
) |
| |
Calculate the dot product between two vec3d inputs
- Parameters
-
- Returns
- Dot product
◆ RotateArbAxis()
vec3d RotateArbAxis |
( |
const vec3d &in |
p, |
|
|
double |
theta, |
|
|
const vec3d &in |
axis |
|
) |
| |
Rotate a input point by specified angle around an arbitrary axis. Assume right hand coordinate system
- Parameters
-
[in] | p | Coordinate point to rotate |
[in] | theta | Angle of rotation in Radians |
[in] | axis | Reference axis for rotation |
- Returns
- Coordinates of rotated point
◆ signed_angle()
double signed_angle |
( |
const vec3d &in |
a, |
|
|
const vec3d &in |
b, |
|
|
const vec3d &in |
ref |
|
) |
| |
Calculate the signed angle between two vec3d inputs (dot product divided by their magnitudes multiplied) and an input reference axis
- Parameters
-
[in] | a | First vec3d |
[in] | b | Second vec3d |
[in] | ref | Reference axis |
- Returns
- Angle in Radians