Hi Guys：

I hope to get an inverse matrix through two points, and then give this matrix to my model. So far, I have got two "vectors (point postion)". I'm sorry, I'm a novice in c++ and I'm confused by multiple matrices. I hope to get good results like the example below. Thank you

```
[email protected]_y = normalize(@P-point(1,"P",0));
[email protected]_x = normalize(cross({0,1,0},[email protected]_y));
[email protected]_z = normalize(cross([email protected]_x,[email protected]_y));
[email protected] = set([email protected]_x,[email protected]_y,[email protected]_z);
@P *= invert(m);
SetModelingAxis
```

```
Vector up = Vector(0,1,0);
Vector yPos = Normalize(point1Pos-point2Pos);
Vector xPos = Normalize(Cross(up,yPos));
Vector zPos = Normalize(Cross(xPos, yPos));
```

edited by @ferdinand:

@Neekoe said:

I want to customize my axis through this method, thx