[英]What is Point4D used for in WPF 3D?
What is the normal use case for Point4D vs Point3D? Point4D与Point3D的正常用例是什么?
Is it for handling special geometry or just carrying a scalar field value around with the point or something more specialized? 它是用于处理特殊的几何图形,还是仅将标量字段值携带在该点附近或更专业的东西?
In order to represent a 3D affine transform where there might be a translation in addition to scaling and rotation as a matrix transform, you need to extend to 4D points and a 4x4 augmented matrix. 为了表示3D 仿射变换 ,除了缩放和旋转外,还可能需要平移作为矩阵变换,您需要扩展到4D点和4x4增强矩阵。 (Consider that a 3x3 matrix could not translate the point (0, 0, 0) to a different location.)
(考虑到3x3矩阵无法将点(0,0,0)转换到其他位置。)
In WPF the Matrix3D structure represents a 4x4 matrix, and Point4D is the augmented vector structure that you can multiply by a Matrix3D matrix. 在WPF中, Matrix3D结构表示4x4矩阵,而Point4D是可以与Matrix3D矩阵相乘的增强矢量结构。 The extended vectors are sometimes called ' homogeneous 3D coordinates '.
扩展的矢量有时称为“ 齐次3D坐标 ”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.