Skip to main content
GameDev.net gamedev.net
🔒 Locked

How do i apply a matrix to a vector2?

Started by Yoyoyoyo Apr 24, 2011 at 8:28 AM 1 replies 950+ views
Original Post
Yoyoyoyo
Yoyoyoyo
.
treeway
treeway
pack the vector2 into a vector4 with {2dVectpor.x,2dVector.y,0.0F,0.0F,1.0F}, apply the matrix, then take the X and Y back out of the 4d vector into the 2d vector.
Yoyoyoyo
Yoyoyoyo
Thanks chief, i tried to delete my thread because i thought i was hounding the forums too much lol. But that's interesting what you say, and might really help me out, thanks for replying.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.