| 1 | use craterust-analyzer cargo glam 0.16.0 crate/::corerust-analyzer cargo glam 0.16.0 core/::traitsrust-analyzer cargo glam 0.16.0 core/traits/::{ |
| 2 | matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/::FloatMatrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#, quaternionrust-analyzer cargo glam 0.16.0 core/traits/quaternion/::Quaternionrust-analyzer cargo glam 0.16.0 core/traits/quaternion/Quaternion#, scalarrust-analyzer cargo glam 0.16.0 core/traits/scalar/::FloatExrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatEx#, vectorrust-analyzer cargo glam 0.16.0 core/traits/vector/::*, |
| 3 | }; |
| 4 | |
| 5 | pub trait ProjectionMatrixrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#<T: FloatExrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatEx#, V4: FloatVector4rust-analyzer cargo glam 0.16.0 core/traits/vector/FloatVector4#<T> + Quaternionrust-analyzer cargo glam 0.16.0 core/traits/quaternion/Quaternion#<T>>: |
| 6 | FloatMatrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#<T, V4> |
| 7 | { |
| 8 | /// Creates a right-handed perspective projection matrix with [-1,1] depth range. |
| 9 | /// This is the same as the OpenGL `gluPerspective` function. |
| 10 | /// See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluPerspective.xml |
| 11 | fn perspective_rh_glrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#perspective_rh_gl().(fov_y_radians: T, aspect_ratio: T, z_near: T, z_far: T) -> Self { |
| 12 | let inv_length = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(z_near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().z_far); |
| 13 | let f = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(T::HALFrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#HALF. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().fov_y_radians).tanrust-analyzer cargo glam 0.16.0 core/traits/scalar/Float#tan().(); |
| 14 | let a = f rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().aspect_ratio; |
| 15 | let b = (z_near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().z_far) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().inv_length; |
| 16 | let c = (T::TWOrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#TWO. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().z_near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().z_far) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().inv_length; |
| 17 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 18 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(a, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 19 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., f, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 20 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., b, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE.), |
| 21 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., c, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 22 | ) |
| 23 | } |
| 24 | |
| 25 | /// Creates a left-handed perspective projection matrix with [0,1] depth range. |
| 26 | fn perspective_lhrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#perspective_lh().(fov_y_radians: T, aspect_ratio: T, z_near: T, z_far: T) -> Self { |
| 27 | glam_assertrust-analyzer cargo glam 0.16.0 macros/glam_assert!!(z_near > T::ZERO && z_far > T::ZERO); |
| 28 | let (sin_fov, cos_fov) = (T::HALFrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#HALF. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().fov_y_radians).sin_cosrust-analyzer cargo glam 0.16.0 core/traits/scalar/Float#sin_cos().(); |
| 29 | let h = cos_fov rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().sin_fov; |
| 30 | let w = h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().aspect_ratio; |
| 31 | let r = z_far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(z_far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().z_near); |
| 32 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 33 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(w, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 34 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., h, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 35 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., r, T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE.), |
| 36 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().z_near, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 37 | ) |
| 38 | } |
| 39 | |
| 40 | /// Creates a right-handed perspective projection matrix with [0,1] depth range. |
| 41 | fn perspective_rhrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#perspective_rh().(fov_y_radians: T, aspect_ratio: T, z_near: T, z_far: T) -> Self { |
| 42 | glam_assertrust-analyzer cargo glam 0.16.0 macros/glam_assert!!(z_near > T::ZERO && z_far > T::ZERO); |
| 43 | let (sin_fov, cos_fov) = (T::HALFrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#HALF. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().fov_y_radians).sin_cosrust-analyzer cargo glam 0.16.0 core/traits/scalar/Float#sin_cos().(); |
| 44 | let h = cos_fov rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().sin_fov; |
| 45 | let w = h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().aspect_ratio; |
| 46 | let r = z_far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(z_near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().z_far); |
| 47 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 48 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(w, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 49 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., h, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 50 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., r, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE.), |
| 51 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().z_near, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 52 | ) |
| 53 | } |
| 54 | |
| 55 | /// Creates an infinite left-handed perspective projection matrix with [0,1] depth range. |
| 56 | fn perspective_infinite_lhrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#perspective_infinite_lh().(fov_y_radians: T, aspect_ratio: T, z_near: T) -> Self { |
| 57 | glam_assertrust-analyzer cargo glam 0.16.0 macros/glam_assert!!(z_near > T::ZERO); |
| 58 | let (sin_fov, cos_fov) = (T::HALFrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#HALF. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().fov_y_radians).sin_cosrust-analyzer cargo glam 0.16.0 core/traits/scalar/Float#sin_cos().(); |
| 59 | let h = cos_fov rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().sin_fov; |
| 60 | let w = h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().aspect_ratio; |
| 61 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 62 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(w, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 63 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., h, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 64 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE., T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE.), |
| 65 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().z_near, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 66 | ) |
| 67 | } |
| 68 | |
| 69 | /// Creates an infinite left-handed perspective projection matrix with [0,1] depth range. |
| 70 | fn perspective_infinite_reverse_lhrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#perspective_infinite_reverse_lh().(fov_y_radians: T, aspect_ratio: T, z_near: T) -> Self { |
| 71 | glam_assertrust-analyzer cargo glam 0.16.0 macros/glam_assert!!(z_near > T::ZERO); |
| 72 | let (sin_fov, cos_fov) = (T::HALFrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#HALF. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().fov_y_radians).sin_cosrust-analyzer cargo glam 0.16.0 core/traits/scalar/Float#sin_cos().(); |
| 73 | let h = cos_fov rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().sin_fov; |
| 74 | let w = h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().aspect_ratio; |
| 75 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 76 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(w, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 77 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., h, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 78 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE.), |
| 79 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., z_near, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 80 | ) |
| 81 | } |
| 82 | |
| 83 | /// Creates an infinite right-handed perspective projection matrix with |
| 84 | /// [0,1] depth range. |
| 85 | fn perspective_infinite_rhrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#perspective_infinite_rh().(fov_y_radians: T, aspect_ratio: T, z_near: T) -> Self { |
| 86 | let f = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(T::HALFrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#HALF. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().fov_y_radians).tanrust-analyzer cargo glam 0.16.0 core/traits/scalar/Float#tan().(); |
| 87 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 88 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(f rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().aspect_ratio, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 89 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., f, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 90 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE.), |
| 91 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().z_near, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 92 | ) |
| 93 | } |
| 94 | |
| 95 | /// Creates an infinite reverse right-handed perspective projection matrix |
| 96 | /// with [0,1] depth range. |
| 97 | fn perspective_infinite_reverse_rhrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#perspective_infinite_reverse_rh().(fov_y_radians: T, aspect_ratio: T, z_near: T) -> Self { |
| 98 | let f = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(T::HALFrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#HALF. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().fov_y_radians).tanrust-analyzer cargo glam 0.16.0 core/traits/scalar/Float#tan().(); |
| 99 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 100 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(f rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().aspect_ratio, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 101 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., f, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 102 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE.), |
| 103 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., z_near, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 104 | ) |
| 105 | } |
| 106 | |
| 107 | /// Creates a right-handed orthographic projection matrix with [-1,1] depth |
| 108 | /// range. This is the same as the OpenGL `glOrtho` function in OpenGL. |
| 109 | /// See |
| 110 | /// https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glOrtho.xml |
| 111 | fn orthographic_rh_glrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#orthographic_rh_gl().(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Self { |
| 112 | let a = T::TWOrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#TWO. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().left); |
| 113 | let b = T::TWOrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#TWO. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().bottom); |
| 114 | let c = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().T::TWOrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatConstEx#TWO. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().near); |
| 115 | let tx = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().left) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().left); |
| 116 | let ty = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().bottom) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().bottom); |
| 117 | let tz = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().(far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().near) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().near); |
| 118 | |
| 119 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 120 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(a, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 121 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., b, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 122 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., c, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 123 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(tx, ty, tz, T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE.), |
| 124 | ) |
| 125 | } |
| 126 | |
| 127 | /// Creates a left-handed orthographic projection matrix with [0,1] depth range. |
| 128 | fn orthographic_lhrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#orthographic_lh().(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Self { |
| 129 | let rcp_width = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().left); |
| 130 | let rcp_height = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().bottom); |
| 131 | let r = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().near); |
| 132 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 133 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(rcp_width rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().rcp_width, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 134 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., rcp_height rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().rcp_height, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 135 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., r, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 136 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().( |
| 137 | -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().(left rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().right) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().rcp_width, |
| 138 | -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().bottom) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().rcp_height, |
| 139 | -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().near, |
| 140 | T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE., |
| 141 | ), |
| 142 | ) |
| 143 | } |
| 144 | |
| 145 | /// Creates a right-handed orthographic projection matrix with [0,1] depth range. |
| 146 | fn orthographic_rhrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#orthographic_rh().(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Self { |
| 147 | let rcp_width = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().left); |
| 148 | let rcp_height = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().bottom); |
| 149 | let r = T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#div().(near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#sub().far); |
| 150 | Self::from_colsrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#from_cols().( |
| 151 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(rcp_width rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().rcp_width, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 152 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., rcp_height rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().rcp_height, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 153 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().(T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO., r, T::ZEROrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ZERO.), |
| 154 | V4::newrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#new().( |
| 155 | -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().(left rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().right) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().rcp_width, |
| 156 | -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#neg().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#add().bottom) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().rcp_height, |
| 157 | r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#mul().near, |
| 158 | T::ONErust-analyzer cargo glam 0.16.0 core/traits/scalar/NumConstEx#ONE., |
| 159 | ), |
| 160 | ) |
| 161 | } |
| 162 | } |