• OpenGL axis conversion


    Axis of coordinates translation rotate zoom Reset axis Matrix operation Example 1. Coordinate axis The right-hand coordinate system used by OpenGL looks at the origin from the front, and counter clockwise rotation is considered as positive rotation. X axis: left to right Y-axis: from bottom up Z axis: from the back of the screen to […]

  • Detailed Explanation of the Use of CSS3 Matrix


    Change of CSS3 matrix. Application format is: transform: matrix(a,b,c,d,e,f); Corresponding to: The transformation in practical application is: Among them: Ax + CY + e = abscissa BX + dy + F = ordinates Why 001 more? Because, in order to collect parameters. Translate matrix The basic format is: Transform: matrix (1, 0, 0, 1, X, […]

  • Ten Basic Algorithms of C Language


    Ten Basic Algorithms of C Language     Algorithms are the soul of a program and software. As an excellent programmer, only if we have a comprehensive grasp of some basic algorithms, can we be proficient in the process of designing programs and writing code. This paper includes classical Fibonacci sequence, simple calculator, palindrome checking, […]

  • PIE calls Python to return an array of histogram matrices


    Some time ago, I studied the combination of PIE SDK and Python. I have been able to successfully call Python through C # to get the color histogram. (Shared in the last essay: https://www.cnblogs.com/yuan1120/p/11126869.html) On the basis of the previous success, this time I intend to call Python through C # and return an array […]

  • Python list derivation, matrix, formatted output


      List deduction List derivation provides a simple way to create lists from lists and tuples. Grammar: [expression for statement if statement] Create and return a list. The if statement is optional.   Examples: List1= [1, 2, 3, 4] Use tuples, too list2=[x*2 for x in list1] print(list2) #[2, 4, 6, 8] list3=[x*2+1 for x […]

  • [LeetCode] 329. Longest Increasing Path in a Matrix


    Problem Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or down. You may NOT move diagonally or move outside of the boundary (i.e. wrap-around is not allowed). Example 1: Input: nums = [ [9,9,4], [6,6,8], [2,1,1] ] Output: […]