(self, T: "Matrix")
| 252 | return gp_Dir(self.wrapped.XYZ()) |
| 253 | |
| 254 | def transform(self, T: "Matrix") -> "Vector": |
| 255 | |
| 256 | # to gp_Pnt to obey cq transformation convention (in OCP.vectors do not translate) |
| 257 | pnt = self.toPnt() |
| 258 | pnt_t = pnt.Transformed(T.wrapped.Trsf()) |
| 259 | |
| 260 | return Vector(gp_Vec(pnt_t.XYZ())) |
| 261 | |
| 262 | def __getstate__(self) -> tuple[float, float, float]: |
| 263 |
no test coverage detected