Loading...
Searching...
No Matches
Namespaces | Functions
vec_transform.h File Reference

Vector transformation operations. More...

#include "core/spherical.h"

Go to the source code of this file.

Namespaces

namespace  bbm
 

Functions

template<typename T >
vec2d< T > perp (const vec2d< T > &v)
 Returns the lefthand (clockwise) perpendicular vector of a 2D vector.
 
template<typename T >
vec2d< T > cperp (const vec2d< T > &v)
 Returns the righthand (counterclockwise) perpendicular vector of a 2D vector.
 
template<typename T >
vec3d< T > reflect (const vec3d< T > &v, const vec3d< T > &normal)
 Reflects a 3D vector.
 
template<typename T >
vec3d< T > reflect (const vec3d< T > &v)
 Reflects a 3D vector around Z=1.
 
template<typename T >
constexpr vec3d< T > cross (const vec3d< T > &a, const vec3d< T > &b)
 Cross product of two 3D vectors.
 
template<typename T >
vec3d< T > halfway (const vec3d< T > &a, const vec3d< T > &b)
 Halfway vector (3D)
 
template<typename T >
std::pair< vec3d< T >, vec3d< T > > convertToHalfwayDifference (const vec3d< T > &a, const vec3d< T > &b)
 Convert fro Canonical to the Halfway-Difference parameterization.
 
template<typename T >
vec3d< T > difference (const vec3d< T > &a, const vec3d< T > &b)
 Difference vector.
 
template<typename T >
std::pair< vec3d< T >, vec3d< T > > convertFromHalfwayDifference (const vec3d< T > &half, const vec3d< T > &diff)
 Convert from Halfway-Difference to Canonical parameterization.
 

Detailed Description

Vector transformation operations.