Projection

Properties

Vector4

w

Vector4(0, 0, 0, 1)

Vector4

x

Vector4(1, 0, 0, 0)

Vector4

y

Vector4(0, 1, 0, 0)

Vector4

z

Vector4(0, 0, 1, 0)

Constructors

Projection

Projection ( )

Projection

Projection ( Projection from )

Projection

Projection ( Transform3D from )

Projection

Projection ( Vector4 x_axis, Vector4 y_axis, Vector4 z_axis, Vector4 w_axis )

Methods

Projection

create_depth_correction ( bool flip_y ) static

Projection

create_fit_aabb ( AABB aabb ) static

Projection

create_for_hmd ( int eye, float aspect, float intraocular_dist, float display_width, float display_to_lens, float oversample, float z_near, float z_far ) static

Projection

create_frustum ( float left, float right, float bottom, float top, float z_near, float z_far ) static

Projection

create_frustum_aspect ( float size, float aspect, Vector2 offset, float z_near, float z_far, bool flip_fov=false ) static

Projection

create_light_atlas_rect ( Rect2 rect ) static

Projection

create_orthogonal ( float left, float right, float bottom, float top, float z_near, float z_far ) static

Projection

create_orthogonal_aspect ( float size, float aspect, float z_near, float z_far, bool flip_fov=false ) static

Projection

create_perspective ( float fovy, float aspect, float z_near, float z_far, bool flip_fov=false ) static

Projection

create_perspective_hmd ( float fovy, float aspect, float z_near, float z_far, bool flip_fov, int eye, float intraocular_dist, float convergence_dist ) static

float

determinant ( ) const

Projection

flipped_y ( ) const

float

get_aspect ( ) const

Vector2

get_far_plane_half_extents ( ) const

float

get_fov ( ) const

float

get_fovy ( float fovx, float aspect ) static

float

get_lod_multiplier ( ) const

int

get_pixels_per_meter ( int for_pixel_width ) const

Plane

get_projection_plane ( int plane ) const

Vector2

get_viewport_half_extents ( ) const

float

get_z_far ( ) const

float

get_z_near ( ) const

Projection

inverse ( ) const

bool

is_orthogonal ( ) const

Projection

jitter_offseted ( Vector2 offset ) const

Projection

perspective_znear_adjusted ( float new_znear ) const

Operators

bool

operator != ( Projection right )

Projection

operator * ( Projection right )

Vector4

operator * ( Vector4 right )

bool

operator == ( Projection right )

Vector4

operator [] ( int index )

Constants

  • PLANE_NEAR = 0

  • PLANE_FAR = 1

  • PLANE_LEFT = 2

  • PLANE_TOP = 3

  • PLANE_RIGHT = 4

  • PLANE_BOTTOM = 5

  • IDENTITY = Projection(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)

  • ZERO = Projection(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)

Property Descriptions

Default

Vector4(0, 0, 0, 1)


Default

Vector4(1, 0, 0, 0)


Default

Vector4(0, 1, 0, 0)


Default

Vector4(0, 0, 1, 0)

Constructor Descriptions




Constructs a Projection from four Vector4 values (matrix columns).

Method Descriptions











  • float determinant ( ) const



  • float get_aspect ( ) const


  • Vector2 get_far_plane_half_extents ( ) const


  • float get_fov ( ) const



  • float get_lod_multiplier ( ) const


  • int get_pixels_per_meter ( int for_pixel_width ) const


  • Plane get_projection_plane ( int plane ) const


  • Vector2 get_viewport_half_extents ( ) const


  • float get_z_far ( ) const


  • float get_z_near ( ) const



  • bool is_orthogonal ( ) const



Operator Descriptions