Home
last modified time | relevance | path

Searched refs:DVec2 (Results 1 – 25 of 35) sorted by relevance

12

/external/rust/crates/glam/src/f64/
Ddvec2.rs16 pub const fn dvec2(x: f64, y: f64) -> DVec2 { in dvec2() argument
17 DVec2::new(x, y) in dvec2()
25 pub struct DVec2 { struct
30 impl DVec2 { implementation
671 impl Default for DVec2 { implementation
678 impl Div<DVec2> for DVec2 { implementation
689 impl DivAssign<DVec2> for DVec2 { implementation
697 impl Div<f64> for DVec2 { implementation
708 impl DivAssign<f64> for DVec2 { implementation
716 impl Div<DVec2> for f64 {
[all …]
Ddmat2.rs3 use crate::{swizzles::*, DMat3, DVec2, Mat2};
15 pub const fn dmat2(x_axis: DVec2, y_axis: DVec2) -> DMat2 { in dmat2() argument
24 pub x_axis: DVec2,
25 pub y_axis: DVec2,
30 pub const ZERO: Self = Self::from_cols(DVec2::ZERO, DVec2::ZERO);
33 pub const IDENTITY: Self = Self::from_cols(DVec2::X, DVec2::Y);
36 pub const NAN: Self = Self::from_cols(DVec2::NAN, DVec2::NAN);
42 x_axis: DVec2::new(m00, m01), in new()
43 y_axis: DVec2::new(m10, m11), in new()
49 pub const fn from_cols(x_axis: DVec2, y_axis: DVec2) -> Self { in from_cols() argument
[all …]
Ddaffine2.rs3 use crate::{DMat2, DMat3, DVec2};
11 pub translation: DVec2,
21 translation: DVec2::ZERO,
29 translation: DVec2::ZERO,
35 translation: DVec2::NAN,
40 pub const fn from_cols(x_axis: DVec2, y_axis: DVec2, z_axis: DVec2) -> Self { in from_cols() argument
52 translation: DVec2::from_slice(&m[4..6]),
98 translation: DVec2::from_slice(&slice[4..6]), in from_cols_slice()
116 pub fn from_scale(scale: DVec2) -> Self { in from_scale()
119 translation: DVec2::ZERO, in from_scale()
[all …]
Ddmat3.rs3 use crate::{swizzles::*, DMat2, DMat4, DQuat, DVec2, DVec3, EulerRot, Mat3};
253 pub fn from_translation(translation: DVec2) -> Self { in from_translation()
282 pub fn from_scale_angle_translation(scale: DVec2, angle: f64, translation: DVec2) -> Self { in from_scale_angle_translation() argument
300 pub fn from_scale(scale: DVec2) -> Self { in from_scale()
302 glam_assert!(scale.cmpne(DVec2::ZERO).any()); in from_scale()
455 pub fn transform_point2(&self, rhs: DVec2) -> DVec2 { in transform_point2() argument
470 pub fn transform_vector2(&self, rhs: DVec2) -> DVec2 { in transform_vector2() argument
Ddvec4.rs3 use crate::{BVec4, DVec2, DVec3};
1173 impl From<(DVec2, f64, f64)> for DVec4 {
1175 fn from((v, z, w): (DVec2, f64, f64)) -> Self { in from() argument
1180 impl From<(DVec2, DVec2)> for DVec4 {
1182 fn from((v, u): (DVec2, DVec2)) -> Self { in from() argument
Ddquat.rs5 DMat3, DMat4, DVec2, DVec3, DVec4, FloatEx, Quat,
319 pub fn from_rotation_arc_2d(from: DVec2, to: DVec2) -> Self { in from_rotation_arc_2d() argument
Ddvec3.rs3 use crate::{BVec3, DVec2, DVec4};
145 pub fn truncate(self) -> DVec2 { in truncate() argument
1162 impl From<(DVec2, f64)> for DVec3 {
1164 fn from((v, z): (DVec2, f64)) -> Self { in from() argument
/external/rust/crates/glam/src/swizzles/
Ddvec2_impl.rs3 use crate::{DVec2, DVec3, DVec4, Vec2Swizzles};
5 impl Vec2Swizzles for DVec2 { implementation
11 fn xx(self) -> DVec2 { in xx() argument
12 DVec2 { in xx()
19 fn xy(self) -> DVec2 { in xy() argument
20 DVec2 { in xy()
27 fn yx(self) -> DVec2 { in yx() argument
28 DVec2 { in yx()
35 fn yy(self) -> DVec2 { in yy() argument
36 DVec2 { in yy()
Ddvec3_impl.rs3 use crate::{DVec2, DVec3, DVec4, Vec3Swizzles};
6 type Vec2 = DVec2;
11 fn xx(self) -> DVec2 { in xx() argument
12 DVec2 { in xx()
19 fn xy(self) -> DVec2 { in xy() argument
20 DVec2 { in xy()
27 fn xz(self) -> DVec2 { in xz() argument
28 DVec2 { in xz()
35 fn yx(self) -> DVec2 { in yx() argument
36 DVec2 { in yx()
[all …]
Ddvec4_impl.rs3 use crate::{DVec2, DVec3, DVec4, Vec4Swizzles};
6 type Vec2 = DVec2;
11 fn xx(self) -> DVec2 { in xx() argument
12 DVec2 { in xx()
19 fn xy(self) -> DVec2 { in xy() argument
20 DVec2 { in xy()
27 fn xz(self) -> DVec2 { in xz() argument
28 DVec2 { in xz()
35 fn xw(self) -> DVec2 { in xw() argument
36 DVec2 { in xw()
[all …]
/external/rust/crates/glam/src/
Df64.rs17 pub use dvec2::{dvec2, DVec2};
26 core::mem::align_of::<super::DVec2>(),
34 core::mem::align_of::<super::DVec2>(),
71 core::mem::align_of::<super::DVec2>()
74 const_assert_eq!(16, core::mem::align_of::<super::DVec2>());
75 const_assert_eq!(16, core::mem::size_of::<super::DVec2>());
/external/rust/crates/glam/src/features/
Dimpl_bytemuck.rs2 DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4, IVec2, IVec3, IVec4, Mat2, Mat3, Mat4, Quat,
34 unsafe impl Pod for DVec2 {} implementation
35 unsafe impl Zeroable for DVec2 {} implementation
58 DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4, IVec2, IVec3, IVec4, Mat2, Mat3, Mat4,
87 test_t!(dvec2, DVec2);
Dimpl_rkyv.rs79 use crate::{DAffine2, DAffine3, DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4};
88 impl_rkyv!(DVec2);
161 use crate::{DAffine2, DAffine3, DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4}; in test_rkyv()
174 test_archive(&DVec2::new(1.0, 2.0)); in test_rkyv()
Dimpl_approx.rs2 Affine2, Affine3A, DAffine2, DAffine3, DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4, Mat2,
153 impl_approx_as_ref!(f64, DVec2);
204 impl_approx_test!(f64, DVec2); in test_approx()
Dimpl_rand.rs171 use crate::{DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4};
178 impl_float_types!(f64, DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4);
Dimpl_mint.rs4 DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4, IVec2, IVec3, IVec4, Mat2, Mat3, Mat3A, Mat4,
311 impl_float_types!(f64, DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4);
518 impl_float_tests!(f64, DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4);
/external/rust/crates/glam/tests/
Dvec2.rs966 use glam::{DVec2, IVec2, UVec2};
967 assert_eq!(DVec2::new(-1.0, -2.0), Vec2::new(-1.0, -2.0).as_dvec2());
971 assert_eq!(IVec2::new(-1, -2), DVec2::new(-1.0, -2.0).as_ivec2());
972 assert_eq!(UVec2::new(1, 2), DVec2::new(1.0, 2.0).as_uvec2());
973 assert_eq!(Vec2::new(-1.0, -2.0), DVec2::new(-1.0, -2.0).as_vec2());
975 assert_eq!(DVec2::new(-1.0, -2.0), IVec2::new(-1, -2).as_dvec2());
979 assert_eq!(DVec2::new(1.0, 2.0), UVec2::new(1, 2).as_dvec2());
988 use glam::{dvec2, BVec2, DVec2, DVec3};
992 assert_eq!(16, mem::size_of::<DVec2>());
994 assert_eq!(mem::align_of::<f64>(), mem::align_of::<DVec2>());
[all …]
Dmat2.rs280 use glam::{dmat2, dvec2, swizzles::*, DMat2, DMat3, DVec2};
285 assert_eq!(mem::align_of::<DVec2>(), mem::align_of::<DMat2>());
288 impl_mat2_tests!(f64, dmat2, DMat2, DMat3, dvec2, DVec2);
Dsupport.rs9 DMat2, DMat3, DMat4, DQuat, DVec2, DVec3, DVec4, Mat2, Mat3, Mat3A, Mat4, Quat, Vec2, Vec3,
250 impl FloatCompare for DVec2 { implementation
Daffine2.rs245 use glam::{DAffine2, DMat2, DMat3, DVec2};
275 impl_affine2_tests!(f64, DAffine2, DVec2, DMat2, DMat3);
Dmat3.rs438 use glam::{dmat3, dvec3, swizzles::*, DMat2, DMat3, DMat4, DQuat, DVec2, DVec3};
446 impl_mat3_tests!(f64, dmat3, DMat3, DMat2, DMat4, DQuat, dvec3, DVec3, DVec2);
/external/deqp/framework/common/
DtcuVectorType.hpp68 typedef Vector<double, 2> DVec2; typedef
/external/deqp/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingWatertightnessTests.cpp107 static inline double doCrossProduct(tcu::DVec2 a, tcu::DVec2 b) in doCrossProduct()
114 tcu::DVec2 pa = { a.x() - p.x(), a.y() - p.y()} ; in pointInTriangle2D()
115 tcu::DVec2 pb = { b.x() - p.x(), b.y() - p.y()}; in pointInTriangle2D()
116 tcu::DVec2 pc = { c.x() - p.x(), c.y() - p.y()}; in pointInTriangle2D()
/external/deqp/external/openglcts/modules/gl/
Dgl4cGPUShaderFP64Tests.cpp12046 class typeInfo<tcu::DVec2>
13960 …return new FunctionObject::binary<glw::GLdouble /* ResT */, tcu::DVec2 /* Arg1T */, tcu::DVec2 /* … in getFunctionObject()
13979 …return new FunctionObject::binary<glw::GLdouble /* ResT */, tcu::DVec2 /* Arg1T */, tcu::DVec2 /* … in getFunctionObject()
13998 …return new FunctionObject::binary<tcu::UVec2 /* ResT */, tcu::DVec2 /* Arg1T */, tcu::DVec2 /* Arg… in getFunctionObject()
14017 return new FunctionObject::tenary<tcu::DVec2 /* ResT */, const tcu::DVec2& /* Arg1T */, in getFunctionObject()
14018 const tcu::DVec2& /* Arg2T */, const tcu::DVec2& /* Arg3T */>( in getFunctionObject()
14062 …return new FunctionObject::binary<tcu::UVec2 /* ResT */, tcu::DVec2 /* Arg1T */, tcu::DVec2 /* Arg… in getFunctionObject()
14081 …return new FunctionObject::binary<tcu::UVec2 /* ResT */, tcu::DVec2 /* Arg1T */, tcu::DVec2 /* Arg… in getFunctionObject()
14128 …return new FunctionObject::binary<tcu::UVec2 /* ResT */, tcu::DVec2 /* Arg1T */, tcu::DVec2 /* Arg… in getFunctionObject()
14147 …return new FunctionObject::binary<tcu::UVec2 /* ResT */, tcu::DVec2 /* Arg1T */, tcu::DVec2 /* Arg… in getFunctionObject()
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkRayTracingUtil.hpp182 template<> inline VkFormat vertexFormatFromType<tcu::DVec2> () { return VK_FORMAT_R64G64_… in vertexFormatFromType()
205 template<> inline tcu::DVec2 convertFloatTo<tcu::DVec2> (const tcu::Vec3& vertex) { return tcu… in convertFloatTo()

12