Blender V4.3
projection.h File Reference
#include "util/transform.h"

Go to the source code of this file.

Classes

struct  ProjectionTransform
struct  PerspectiveMotionTransform

Typedefs

typedef CCL_NAMESPACE_BEGIN struct ProjectionTransform ProjectionTransform
typedef struct PerspectiveMotionTransform PerspectiveMotionTransform

Functions

ccl_device_inline float3 transform_perspective (ccl_private const ProjectionTransform *t, const float3 a)
ccl_device_inline float3 transform_perspective_direction (ccl_private const ProjectionTransform *t, const float3 a)
ccl_device_inline Transform projection_to_transform (const ProjectionTransform &a)
ccl_device_inline ProjectionTransform projection_transpose (const ProjectionTransform &a)
ProjectionTransform projection_inverse (const ProjectionTransform &a)
ccl_device_inline ProjectionTransform make_projection (float a, float b, float c, float d, float e, float f, float g, float h, float i, float j, float k, float l, float m, float n, float o, float p)
ccl_device_inline ProjectionTransform projection_identity ()
ccl_device_inline ProjectionTransform operator* (const ProjectionTransform &a, const ProjectionTransform &b)
ccl_device_inline ProjectionTransform operator* (const ProjectionTransform &a, const Transform &b)
ccl_device_inline ProjectionTransform operator* (const Transform &a, const ProjectionTransform &b)
ccl_device_inline void print_projection (const char *label, const ProjectionTransform &t)
ccl_device_inline ProjectionTransform projection_perspective (float fov, float n, float f)
ccl_device_inline ProjectionTransform projection_orthographic (float znear, float zfar)

Typedef Documentation

◆ PerspectiveMotionTransform

typedef struct PerspectiveMotionTransform PerspectiveMotionTransform

◆ ProjectionTransform

typedef CCL_NAMESPACE_BEGIN struct ProjectionTransform ProjectionTransform

Function Documentation

◆ make_projection()

◆ operator*() [1/3]

◆ operator*() [2/3]

Definition at line 160 of file cycles/util/projection.h.

References b, and ccl_device_inline.

◆ operator*() [3/3]

Definition at line 165 of file cycles/util/projection.h.

References b, and ccl_device_inline.

◆ print_projection()

◆ projection_identity()

ccl_device_inline ProjectionTransform projection_identity ( )

◆ projection_inverse()

ProjectionTransform projection_inverse ( const ProjectionTransform & a)

◆ projection_orthographic()

ccl_device_inline ProjectionTransform projection_orthographic ( float znear,
float zfar )

Definition at line 191 of file cycles/util/projection.h.

References ccl_device_inline, and transform_scale().

Referenced by Camera::update().

◆ projection_perspective()

ccl_device_inline ProjectionTransform projection_perspective ( float fov,
float n,
float f )

Definition at line 179 of file cycles/util/projection.h.

References ccl_device_inline, make_projection(), tanf, and transform_scale().

Referenced by Camera::update().

◆ projection_to_transform()

◆ projection_transpose()

◆ transform_perspective()

◆ transform_perspective_direction()

ccl_device_inline float3 transform_perspective_direction ( ccl_private const ProjectionTransform * t,
const float3 a )

Definition at line 44 of file cycles/util/projection.h.

References ccl_device_inline, ccl_private, make_float3(), float3::x, float3::y, and float3::z.

Referenced by Camera::update().