FSO.LotView.Components.WallComponent.RotateOffset C# (CSharp) Method

RotateOffset() private method

private RotateOffset ( WorldRotation rot, Vector3 off ) : Vector3
rot WorldRotation
off Vector3
return Vector3
        private Vector3 RotateOffset(WorldRotation rot, Vector3 off)
        {
            switch (rot) {
                case WorldRotation.TopLeft:
                    return off;
                case WorldRotation.TopRight:
                    return new Vector3(off.Y, -off.X, off.Z);
                case WorldRotation.BottomRight:
                    return new Vector3(-off.X, -off.Y, off.Z);
                case WorldRotation.BottomLeft:
                    return new Vector3(-off.Y, off.X, off.Z);
            }
            return off;
        }