File:  [parser3project] / parser3 / src / types / pa_vmath.C
Revision 1.20: download - view: text, annotated - select for diffs - revision graph
Sat Apr 25 13:38:46 2026 UTC (6 weeks, 4 days ago) by moko
Branches: MAIN
CVS tags: HEAD
Copyright year updated, websites links changed to https://

/**	@file
	Parser: @b math class.

	Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com)
	Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
*/

#include "pa_vmath.h"
#include "pa_vdouble.h"
#include "pa_vint.h"

volatile const char * IDENT_PA_VMATH_C="$Id: pa_vmath.C,v 1.20 2026/04/25 13:38:46 moko Exp $" IDENT_PA_VMATH_H;

// externs

extern Methoded* math_class;

// methods

VMath::VMath(): VStateless_class(math_class) {
	fconsts.put("PI", new VDouble(PI));
	fconsts.put("E", new VDouble(MathE));
	fconsts.put("int_max", new VInt(PA_WINT_MAX));
	fconsts.put("int_min", new VInt(PA_WINT_MIN));
}

E-mail: