Annotation of parser3/src/types/pa_vmath.C, revision 1.20

1.2       paf         1: /**    @file
                      2:        Parser: @b math class.
                      3: 
1.20    ! moko        4:        Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com)
1.17      moko        5:        Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
1.2       paf         6: */
                      7: 
                      8: #include "pa_vmath.h"
                      9: #include "pa_vdouble.h"
1.19      moko       10: #include "pa_vint.h"
1.2       paf        11: 
1.20    ! moko       12: volatile const char * IDENT_PA_VMATH_C="$Id: pa_vmath.C,v 1.19 2026/01/07 01:10:05 moko Exp $" IDENT_PA_VMATH_H;
1.10      moko       13: 
1.2       paf        14: // externs
                     15: 
1.13      moko       16: extern Methoded* math_class;
1.2       paf        17: 
                     18: // methods
                     19: 
1.14      moko       20: VMath::VMath(): VStateless_class(math_class) {
1.11      moko       21:        fconsts.put("PI", new VDouble(PI));
                     22:        fconsts.put("E", new VDouble(MathE));
1.19      moko       23:        fconsts.put("int_max", new VInt(PA_WINT_MAX));
                     24:        fconsts.put("int_min", new VInt(PA_WINT_MIN));
1.2       paf        25: }

E-mail: