scenepic 1.1.0
3D Visualization Made Easy
Namespaces | Functions
transforms.h File Reference
#include "matrix.h"
#include <utility>

Go to the source code of this file.

Namespaces

namespace  scenepic
 
namespace  scenepic::Transforms
 

Functions

Transform scenepic::Transforms::scale (float scale)
 Creates a 3D homogeneous scale matrix. More...
 
Transform scenepic::Transforms::scale (const Vector &scale)
 Creates a 3D homogeneous scale matrix. More...
 
Transform scenepic::Transforms::translate (const Vector &vec)
 Creates a 3D homogeneous scale matrix. More...
 
Transform scenepic::Transforms::rotation_matrix_from_axis_angle (const Vector &axis, float angle)
 Creates a 3D homogeneous scale matrix from axis and angle. More...
 
Quaternion scenepic::Transforms::quaternion_from_axis_angle (const Vector &axis, float angle)
 Convert rotation axis and angle to a quaternion. More...
 
std::pair< Vector, float > scenepic::Transforms::axis_angle_to_align_x_to_axis (const Vector &axis)
 Find the axis and angle of rotation that will ensure the x-axis aligns with the provided axis. More...
 
Quaternion scenepic::Transforms::quaternion_to_align_x_to_axis (const Vector &axis)
 Creates a quaternion rotation vector that will ensure the x-axis aligns with the provided axis. More...
 
Quaternion scenepic::Transforms::quaternion_multiply (const Quaternion &a, const Quaternion &b)
 Multiply two quaternions. More...
 
Transform scenepic::Transforms::rotation_to_align_x_to_axis (const Vector &axis)
 Creates a 3D homogeneous rotation matrix that will ensure the x-axis aligns with the provided axis. More...
 
Transform scenepic::Transforms::rotation_about_x (float angle)
 Creates a 3D homogeneous rotation matrix about the x-axis. More...
 
Transform scenepic::Transforms::rotation_about_y (float angle)
 Creates a 3D homogeneous rotation matrix about the x-axis. More...
 
Transform scenepic::Transforms::rotation_about_z (float angle)
 Creates a 3D homogeneous rotation matrix about the x-axis. More...
 
Transform scenepic::Transforms::look_at_rotation (const Vector &center, const Vector &look_at, const Vector &up_dir)
 Creates a 3D homogeneous rotation matrix that will cause an object with the specified center to look at the specified location, with the up direction as given. More...
 
Transform scenepic::Transforms::euler_angles_to_matrix (const Vector &euler_angles, const std::string &convention="XYZ")
 Creates a 3D homogeneous rotation matrix from three euler angles using the specified convention. More...
 
Transform scenepic::Transforms::quaternion_to_matrix (const Quaternion &quaternion)
 Creates a 3D homogeneous rotation matrix from a quaternion. More...
 
Transform scenepic::Transforms::gl_projection (double fov_y_degrees, double aspect_ratio, double znear, double zfar)
 Creates a WebGL projection transform (i.e. More...
 
Transform scenepic::Transforms::gl_projection (const Intrinsic &camera_matrix, int width, int height, double znear, double zfar)
 Creates a WebGL projection transform (i.e. More...
 
Transform scenepic::Transforms::gl_world_to_camera (const Extrinsic &extrinsic)
 Creates a WebGL view transform (i.e. More...