pub fn rotateElementsRight(vec: anytype, comptime amount: VectorCount(@TypeOf(vec))) @TypeOf(vec) vecamount: VectorCount(@TypeOf(vec))283
284
285pub fn rotateElementsRight(vec: anytype, comptime amount: VectorCount(@TypeOf(vec))) @TypeOf(vec) {
return rotateElementsLeft(vec, vectorLength(@TypeOf(vec)) - amount);
}
Elements are shifted rightwards (towards higher indices). Elements that leave to the right will reappear to the left in the same order.