What's the difference between CFrame.XVector and CFrame.RightVector

The Roblox Developer API reference web page for CFrame has a matrix as shown below and then descriptions of CFrame.RightVector and CFrame.XVector as shown below. The descriptions of RightVector and XVector seem to indicate that they are the same thing because they both show “Vector3.new(r00,r10,r20),” but the descriptions show “Equivalent to the first/left column of the rotation matrix” for RightVector and “Equivalent to the first/top row of the rotation matrix” for XVector indicating that they are different. Are they the same or different? Is there an error on the web page or is it accurate? Am I misinterpreting the information?

CFrame.RightVector: The right-direction component of the CFrame’s orientation. Equivalent to the first/left column of the rotation matrix, or Vector3.new(r00, r10, r20)
CFrame.XVector: Equivalent to the first/top row of the rotation matrix, or Vector3.new(r00, r10, r20)

      Right Up Back

|XVector| R00 | R10 | R20 |
|YVector| R01 | R11 | R21 |
|ZVector| R02 | R12 | R22 |

X,Y,Z Are the normal axis and Right/Up/Back Is the unit vectors(i hat,j hat,k hat), A unit vector is a vector with a magnitude of 1 it’s useful for example to check what happend to the plane based on what happend to the unit vectors,Finding a direction is also a good example, Also that’s the rotation matrix.

The description is incorrect on the properties page. RightVector is equivalent to Vector3.new(r00, r01, r02).

It’s listed correctly further up the page, in this table:

RightVector UpVector –LookVector
XVector R00 R10 R20
YVector R01 R11 R21
ZVector R02 R12 R22
4 Likes