Skip to content

Namespace ILLIXR::math_util

Namespace List > ILLIXR > math_util

Public Attributes

Type Name
const Eigen::Matrix3f conversion = /* multi line expression */
const Eigen::Matrix3f identity = Eigen::Matrix3f::Identity()
const Eigen::Matrix3f invert_x = (Eigen::Matrix3f() << -1., 0., 0., 0., 1., 0., 0., 0., 1.).finished()
const Eigen::Matrix3f invert_y = (Eigen::Matrix3f() << 1., 0., 0., 0., -1., 0., 0., 0., 1.).finished()
const Eigen::Matrix3f invert_z = (Eigen::Matrix3f() << 1., 0., 0., 0., 1., 0., 0., 0., -1.).finished()

Public Functions

Type Name
void godot_projection (Eigen::Matrix4f * result, const float fov_left, const float fov_right, const float fov_up, const float fov_down)
void projection (Eigen::Matrix4f * result, const float tan_left, const float tan_right, const float tan_up, float const tan_down, const float near_z, const float far_z)
Calculates a projection matrix with the given tangent angles and clip planes.
void projection_fov (Eigen::Matrix4f * result, const float fov_left, const float fov_right, const float fov_up, const float fov_down, const float near_z, const float far_z, bool reverse_z=false)
Calculates a projection matrix with the given FoVs and clip planes.
void projection_reverse_z (Eigen::Matrix4f * result, const float tan_left, const float tan_right, const float tan_up, float const tan_down, const float near_z, const float far_z)
Calculates a projection matrix with the given tangent angles and clip planes, with reversed depth.
Eigen::Matrix3f rotation (const float alpha, const float beta, const float gamma)
void unreal_projection (Eigen::Matrix4f * result, const float fov_left, const float fov_right, const float fov_up, const float fov_down)

Public Attributes Documentation

variable conversion

const Eigen::Matrix3f ILLIXR::math_util::conversion[6][6];

variable identity

const Eigen::Matrix3f ILLIXR::math_util::identity;

variable invert_x

const Eigen::Matrix3f ILLIXR::math_util::invert_x;

variable invert_y

const Eigen::Matrix3f ILLIXR::math_util::invert_y;

variable invert_z

const Eigen::Matrix3f ILLIXR::math_util::invert_z;

Public Functions Documentation

function godot_projection

void ILLIXR::math_util::godot_projection (
    Eigen::Matrix4f * result,
    const float fov_left,
    const float fov_right,
    const float fov_up,
    const float fov_down
) 

function projection

Calculates a projection matrix with the given tangent angles and clip planes.

void ILLIXR::math_util::projection (
    Eigen::Matrix4f * result,
    const float tan_left,
    const float tan_right,
    const float tan_up,
    float const tan_down,
    const float near_z,
    const float far_z
) 


function projection_fov

Calculates a projection matrix with the given FoVs and clip planes.

void ILLIXR::math_util::projection_fov (
    Eigen::Matrix4f * result,
    const float fov_left,
    const float fov_right,
    const float fov_up,
    const float fov_down,
    const float near_z,
    const float far_z,
    bool reverse_z=false
) 


function projection_reverse_z

Calculates a projection matrix with the given tangent angles and clip planes, with reversed depth.

void ILLIXR::math_util::projection_reverse_z (
    Eigen::Matrix4f * result,
    const float tan_left,
    const float tan_right,
    const float tan_up,
    float const tan_down,
    const float near_z,
    const float far_z
) 


function rotation

inline Eigen::Matrix3f ILLIXR::math_util::rotation (
    const float alpha,
    const float beta,
    const float gamma
) 

function unreal_projection

void ILLIXR::math_util::unreal_projection (
    Eigen::Matrix4f * result,
    const float fov_left,
    const float fov_right,
    const float fov_up,
    const float fov_down
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/include/illixr/math_util.hpp