1. Куча / Говнокод #5003

    +145

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    package _3d
    {
    
        public class Matrix3d extends Object
        {
            public var _12:Number;
            public var _11:Number;
            public var _13:Number;
            public var _14:Number;
            public var _32:Number;
            public var _41:Number;
            public var _42:Number;
            public var _21:Number;
            public var _22:Number;
            public var _23:Number;
            public var _24:Number;
            public var _43:Number;
            public var _44:Number;
            public var _34:Number;
            public var _31:Number;
            public var _33:Number;
    
            public function Matrix3d(param1:Number = 1, param2:Number = 0, param3:Number = 0, param4:Number = 0, param5:Number = 0, param6:Number = 1, param7:Number = 0, param8:Number = 0, param9:Number = 0, param10:Number = 0, param11:Number = 1, param12:Number = 0, param13:Number = 0, param14:Number = 0, param15:Number = 0, param16:Number = 1)
            {
                _11 = param1;
                _12 = param2;
                _13 = param3;
                _14 = param4;
                _21 = param5;
                _22 = param6;
                _23 = param7;
                _24 = param8;
                _31 = param9;
                _32 = param10;
                _33 = param11;
                _34 = param12;
                _41 = param13;
                _42 = param14;
                _43 = param15;
                _44 = param16;
                return;
            }// end function
    
            public function toString() : String
            {
                return _11 + "," + _12 + "," + _13 + "," + _14 + "," + _21 + "," + _22 + "," + _23 + "," + _24 + "," + _31 + "," + _32 + "," + _33 + "," + _34 + "," + _41 + "," + _42 + "," + _43 + "," + _44;
            }// end function
    
            public static function product(param1:Matrix3d, param2:Matrix3d) : Matrix3d
            {
                return new Matrix3d(param1._11 * param2._11 + param1._12 * param2._21 + param1._13 * param2._31 + param1._14 * param2._41, param1._11 * param2._12 + param1._12 * param2._22 + param1._13 * param2._32 + param1._14 * param2._42, param1._11 * param2._13 + param1._12 * param2._23 + param1._13 * param2._33 + param1._14 * param2._43, param1._11 * param2._14 + param1._12 * param2._24 + param1._13 * param2._34 + param1._14 * param2._44, param1._21 * param2._11 + param1._22 * param2._21 + param1._23 * param2._31 + param1._24 * param2._41, param1._21 * param2._12 + param1._22 * param2._22 + param1._23 * param2._32 + param1._24 * param2._42, param1._21 * param2._13 + param1._22 * param2._23 + param1._23 * param2._33 + param1._24 * param2._43, param1._21 * param2._14 + param1._22 * param2._24 + param1._23 * param2._34 + param1._24 * param2._44, param1._31 * param2._11 + param1._32 * param2._21 + param1._33 * param2._31 + param1._34 * param2._41, param1._31 * param2._12 + param1._32 * param2._22 + param1._33 * param2._32 + param1._34 * param2._42, param1._31 * param2._13 + param1._32 * param2._23 + param1._33 * param2._33 + param1._34 * param2._43, param1._31 * param2._14 + param1._32 * param2._24 + param1._33 * param2._34 + param1._34 * param2._44, param1._41 * param2._11 + param1._42 * param2._21 + param1._43 * param2._31 + param1._44 * param2._41, param1._41 * param2._12 + param1._42 * param2._22 + param1._43 * param2._32 + param1._44 * param2._42, param1._41 * param2._13 + param1._42 * param2._23 + param1._43 * param2._33 + param1._44 * param2._43, param1._41 * param2._14 + param1._42 * param2._24 + param1._43 * param2._34 + param1._44 * param2._44);
            }// end function
    
        }
    }

    Matrix3d.as

    ноу комментс: матрицо в 3д, экшон

    Запостил: Lure Of Chaos, 21 Декабря 2010

    Комментарии (6) RSS

    Добавить комментарий