test_trig.c File Reference

#include <ft2build.h>
#include <math.h>
#include <stdio.h>

Go to the source code of this file.

Defines

#define PI   3.14159265358979323846
#define SPI   (PI/FT_ANGLE_PI)
#define THRESHOLD   64

Functions

static void test_cos (void)
static void test_sin (void)
static void test_tan (void)
static void test_atan2 (void)
static void test_unit (void)
static void test_length (void)
static void test_rotate (void)
int main (void)

Variables

static error = 0


Define Documentation

#define PI   3.14159265358979323846

Definition at line 8 of file test_trig.c.

#define SPI   (PI/FT_ANGLE_PI)

Definition at line 9 of file test_trig.c.

Referenced by test_atan2(), test_cos(), test_length(), test_rotate(), test_sin(), test_tan(), and test_unit().

#define THRESHOLD   64

Definition at line 14 of file test_trig.c.

Referenced by test_cos(), test_length(), test_rotate(), test_sin(), test_tan(), and test_unit().


Function Documentation

int main ( void   ) 

Definition at line 222 of file test_trig.c.

References error, test_atan2(), test_cos(), test_length(), test_rotate(), test_sin(), test_tan(), and test_unit().

static void test_atan2 ( void   )  [static]

Definition at line 92 of file test_trig.c.

References a, c1, cos(), FT_ANGLE_2PI, FT_Atan2(), i, j, l, s1, s2, sin(), and SPI.

Referenced by main().

static void test_cos ( void   )  [static]

Definition at line 19 of file test_trig.c.

References cos(), error, f2, FT_ANGLE_2PI, FT_Cos(), i, SPI, and THRESHOLD.

Referenced by main().

static void test_length ( void   )  [static]

Definition at line 152 of file test_trig.c.

References cos(), error, FT_ANGLE_2PI, FT_Vector_Length(), i, l, sin(), SPI, and THRESHOLD.

Referenced by main().

static void test_rotate ( void   )  [static]

Definition at line 176 of file test_trig.c.

References a, c1, cos(), error, FT_ANGLE_2PI, FT_Vector_Rotate(), i, j, l, rotate, s1, s2, sin(), SPI, and THRESHOLD.

Referenced by main().

static void test_sin ( void   )  [static]

Definition at line 44 of file test_trig.c.

References error, f2, FT_ANGLE_2PI, FT_Sin(), i, sin(), SPI, and THRESHOLD.

Referenced by main().

static void test_tan ( void   )  [static]

Definition at line 68 of file test_trig.c.

References error, f2, FT_ANGLE_PI2, FT_Tan(), i, SPI, tan(), and THRESHOLD.

Referenced by main().

static void test_unit ( void   )  [static]

Definition at line 122 of file test_trig.c.

References a, c1, cos(), error, FT_ANGLE_2PI, FT_Vector_Unit(), i, s1, s2, sin(), SPI, and THRESHOLD.

Referenced by main(), mstress_special_creation(), and stress_special_creation().


Variable Documentation

error = 0 [static]

Definition at line 16 of file test_trig.c.

Referenced by _bdf_add_comment(), _bdf_add_property(), _bdf_list_ensure(), _bdf_list_split(), _bdf_parse_glyphs(), _bdf_parse_properties(), _bdf_parse_start(), _bdf_readstream(), _bdf_set_default_spacing(), _gdk_pixmap_create_from_xpm(), _tt_check_patents_in_range(), _tt_check_patents_in_table(), _tt_face_check_patents(), RooHist::addAsymmetryBinWithError(), RooHist::addEfficiencyBinWithError(), af_axis_hints_new_edge(), af_axis_hints_new_segment(), af_face_globals_compute_script_coverage(), af_face_globals_get_metrics(), af_face_globals_new(), af_glyph_hints_reload(), af_latin2_hints_apply(), af_latin2_hints_compute_edges(), af_latin2_hints_compute_segments(), af_latin2_hints_detect_features(), af_latin2_metrics_init(), af_latin2_metrics_init_blues(), af_latin2_metrics_init_widths(), af_latin_hints_apply(), af_latin_hints_compute_edges(), af_latin_hints_compute_segments(), af_latin_hints_detect_features(), af_latin_metrics_init(), af_latin_metrics_init_blues(), af_latin_metrics_init_widths(), af_loader_load_g(), af_loader_load_glyph(), af_loader_reset(), afm_parse_kern_data(), afm_parse_kern_pairs(), afm_parse_track_kern(), afm_parser_init(), afm_parser_parse(), afm_parser_read_vals(), TCollection::AssertClass(), XrdSecProtocolkrb4::Authenticate(), XrdSecProtocolkrb5::Authenticate(), bdf_create_property(), BDF_Face_Init(), BDF_Glyph_Load(), bdf_interpret_style(), bdf_load_font(), BDF_Size_Request(), XrdOucAvahiBonjour::BrowseEventLoopThread(), TMVA::TNeuron::CalculateDelta(), TMVA::CostComplexityPruneTool::CalculatePruningInfo(), cff_builder_add_contour(), cff_builder_add_point1(), cff_builder_start_point(), cff_charset_compute_cids(), cff_charset_load(), cff_decoder_parse_charstrings(), cff_decoder_prepare(), cff_encoding_load(), cff_face_init(), cff_font_load(), cff_get_advances(), cff_get_glyph_data(), cff_get_glyph_name(), cff_index_access_element(), cff_index_get_name(), cff_index_get_pointers(), cff_index_get_sid_string(), cff_index_init(), cff_index_load_offsets(), cff_index_read_offset(), CFF_Load_FD_Select(), cff_operator_seac(), cff_parse_cid_ros(), cff_parse_font_bbox(), cff_parse_font_matrix(), cff_parse_private_dict(), cff_ps_get_font_info(), cff_size_init(), cff_strcpy(), cff_subfont_load(), RooListProxy::changePointer(), RooSetProxy::changePointer(), check_table_dir(), check_type1_format(), TLatex::CheckLatexSyntax(), XrdSfsNative::chmod(), cid_face_init(), cid_get_cid_from_glyph_index(), cid_get_is_cid(), cid_load_glyph(), cid_load_keyword(), cid_parser_new(), cid_size_init(), classic_kern_validate(), ClassImp(), compile_single_pattern(), compute_glyph_metrics(), convert_profile(), THbookFile::ConvertProfile(), RooStreamParser::convertToDouble(), RooStreamParser::convertToInteger(), RooAbsReal::createIntObj(), THnSparse::CreateSparse(), XrdSecProtocolsss::Decode(), TVolumePosition::Errmx2Local(), TVolumePosition::Errmx2Master(), Reflex::SharedLibrary::Error(), ROOT::Math::GSLDerivator::EvalBackward(), ROOT::Math::GSLDerivator::EvalCentral(), ROOT::Math::Chebyshev::EvalErr(), ROOT::Math::GSLDerivator::EvalForward(), TContextMenu::Execute(), TObjectExecute::Execute(), XrdSfsNative::exists(), RooStreamParser::expectToken(), ROOT::Fit::FillData(), findBin(), fit2DHist(), fit3DHist(), fitSparse2D(), fnt_face_get_dll_font(), FNT_Face_Init(), fnt_font_load(), FNT_Load_Glyph(), FNT_Size_Request(), RooStats::HLFactory::fReadFile(), ft_bitmap_assure_buffer(), FT_Bitmap_Convert(), FT_Bitmap_Copy(), FT_Bitmap_Embolden(), ft_bitmap_glyph_init(), FT_ClassicKern_Validate(), FT_DEFINE_GLYPH(), FT_DEFINE_SERVICE_SFNT_TABLEREC(), ft_face_get_mm_service(), FT_Get_Advance(), FT_Get_Advances(), FT_Get_BDF_Charset_ID(), FT_Get_BDF_Property(), FT_Get_CID_From_Glyph_Index(), FT_Get_CID_Is_Internally_CID_Keyed(), FT_Get_CID_Registry_Ordering_Supplement(), FT_Get_Glyph(), FT_Get_MM_Var(), FT_Get_Multi_Master(), FT_Get_PFR_Advance(), FT_Get_PFR_Kerning(), FT_Get_PFR_Metrics(), FT_Get_PS_Font_Info(), FT_Get_PS_Font_Private(), FT_Get_WinFNT_Header(), FT_Glyph_Copy(), FT_Glyph_Stroke(), FT_Glyph_StrokeBorder(), FT_Glyph_To_Bitmap(), FT_Glyph_Transform(), FT_GlyphLoader_CheckPoints(), FT_GlyphLoader_CheckSubGlyphs(), FT_GlyphLoader_CopyPoints(), FT_GlyphLoader_CreateExtra(), FT_GlyphLoader_New(), ft_glyphslot_alloc_bitmap(), FT_GlyphSlot_Embolden(), ft_glyphslot_init(), FT_GlyphSlot_Own_Bitmap(), FT_List_Iterate(), FT_Load_Glyph(), ft_lzwstate_prefix_grow(), ft_lzwstate_stack_grow(), ft_mem_alloc(), ft_mem_dup(), ft_mem_qalloc(), ft_mem_qrealloc(), ft_mem_realloc(), FT_New_Face(), FT_New_Face_From_FOND(), FT_New_Face_From_FSRef(), FT_New_Face_From_FSSpec(), FT_New_Face_From_LWFN(), FT_New_Face_From_Resource(), FT_New_Face_From_SFNT(), FT_New_Face_From_Suitcase(), FT_New_GlyphSlot(), FT_OpenType_Validate(), FT_Outline_Decompose(), ft_outline_glyph_copy(), FT_Outline_New_Internal(), FT_Outline_Render(), FT_Raccess_Get_DataOffsets(), FT_Raccess_Get_HeaderInfo(), ft_raster1_render(), ft_raster1_transform(), FT_Set_MM_Blend_Coordinates(), FT_Set_MM_Design_Coordinates(), FT_Set_Var_Blend_Coordinates(), FT_Set_Var_Design_Coordinates(), ft_smooth_render_generic(), ft_smooth_render_lcd(), ft_smooth_render_lcd_v(), ft_smooth_transform(), FT_Stream_EnterFrame(), FT_Stream_ExtractFrame(), FT_Stream_New(), FT_Stream_ReadAt(), FT_Stream_ReadFields(), FT_Stream_Seek(), ft_stroke_border_arcto(), ft_stroke_border_conicto(), ft_stroke_border_cubicto(), ft_stroke_border_get_counts(), ft_stroke_border_grow(), ft_stroke_border_lineto(), ft_stroker_add_reverse_left(), ft_stroker_arcto(), ft_stroker_cap(), FT_Stroker_ConicTo(), FT_Stroker_CubicTo(), FT_Stroker_EndSubPath(), FT_Stroker_GetBorderCounts(), FT_Stroker_GetCounts(), ft_stroker_inside(), FT_Stroker_LineTo(), FT_Stroker_New(), ft_stroker_outside(), FT_Stroker_ParseOutline(), ft_stroker_process_corner(), ft_stroker_subpath_start(), FT_TrueTypeGX_Validate(), ftc_basic_family_get_count(), ftc_basic_family_load_bitmap(), ftc_basic_family_load_glyph(), ftc_cache_init(), FTC_Cache_NewNode(), ftc_cache_resize(), ftc_cmap_node_new(), FTC_CMapCache_Lookup(), ftc_face_node_init(), ftc_gcache_init(), FTC_ImageCache_Lookup(), FTC_ImageCache_LookupScaler(), FTC_INode_New(), FTC_Manager_LookupFace(), FTC_Manager_LookupSize(), FTC_Manager_New(), FTC_Manager_RegisterCache(), FTC_MruList_New(), ftc_sbit_copy_bitmap(), FTC_SBitCache_Lookup(), FTC_SBitCache_LookupScaler(), ftc_scaler_lookup_size(), ftc_snode_compare(), ftc_snode_load(), FTC_SNode_New(), G__ManualTree2_126_0_187(), TRegexp::GenPattern(), TH1::GetAsymmetry(), TMVA::MethodMLP::GetCEErr(), XrdSecProtocolkrb4::getCredentials(), XrdSecProtocolkrb5::getCredentials(), TMultiLayerPerceptron::GetCrossEntropy(), TMultiLayerPerceptron::GetCrossEntropyBinary(), TMVA::MethodMLP::GetError(), TMultiLayerPerceptron::GetError(), TChi2FitData::GetFitData(), TMVA::MethodMLP::GetMSEErr(), TDocMacroDirective::GetResult(), TMultiLayerPerceptron::GetSumSquareError(), RooAbsPdf::getVal(), gxv_ctlPoint_validate(), gxv_load_table(), gxv_prop_zero_advance_validate(), gxv_validate(), hash_init(), hash_insert(), hash_rehash(), Ifit(), RooGaussKronrodIntegrator1D::integral(), RooAdaptiveGaussKronrodIntegrator1D::integral(), integral_TF1(), TUnfold::InvertMSparse(), load_format_20(), load_format_25(), Load_Glyph(), load_post_names(), load_truetype_glyph(), NdbMTDir::LoadENDF(), NdbMTReactionXS::LoadENDF(), main(), RooClassFactory::makeFunctionInstance(), RooClassFactory::makePdfInstance(), TFileMerger::MergeRecursive(), MergeRootfile(), XrdSfsNative::mkdir(), THnSparse::Multiply(), open_face(), operator<<(), operator==(), otv_load_table(), otv_validate(), parse_afm(), parse_blend_axis_types(), parse_blend_design_map(), parse_blend_design_positions(), parse_charstrings(), parse_encoding(), parse_fd_array(), parse_subrs(), parse_weight_vector(), PCF_Face_Init(), pcf_get_accel(), pcf_get_bitmaps(), pcf_get_encodings(), pcf_get_metric(), pcf_get_metrics(), pcf_get_properties(), PCF_Glyph_Load(), pcf_interpret_style(), pcf_load_font(), pcf_read_TOC(), pcf_seek_to_table_type(), PCF_Size_Request(), pfr_aux_name_load(), pfr_cmap_init(), pfr_extra_item_load_bitmap_info(), pfr_extra_item_load_font_id(), pfr_extra_item_load_kerning_pairs(), pfr_extra_item_load_stem_snaps(), pfr_extra_items_parse(), pfr_face_get_kerning(), pfr_face_init(), pfr_get_advance(), pfr_glyph_curve_to(), pfr_glyph_line_to(), pfr_glyph_load_compound(), pfr_glyph_load_rec(), pfr_glyph_load_simple(), pfr_glyph_move_to(), pfr_header_load(), pfr_load_bitmap_bits(), pfr_load_bitmap_metrics(), pfr_log_font_count(), pfr_log_font_load(), pfr_phy_font_load(), pfr_slot_load(), pfr_slot_load_bitmap(), RooFactoryWSTool::process(), TQtRootSlot::ProcessLine(), ps_hint_table_alloc(), ps_hint_table_ensure(), ps_hints_apply(), ps_mask_ensure(), ps_mask_set_bit(), ps_mask_table_alloc(), ps_mask_table_ensure(), ps_mask_table_last(), ps_mask_table_merge(), ps_mask_table_merge_all(), ps_mask_table_set_bits(), ps_parser_skip_PS_token(), ps_parser_to_token(), ps_table_add(), ps_table_done(), ps_table_new(), psh_globals_new(), psh_glyph_init(), psh_glyph_interpolate_normal_points(), psh_hint_table_init(), qelg(), R__longest_match(), read_lwfn(), read_pfb_tag(), RooRealVar::readFromStream(), reallocate_t1_table(), XrdSfsNative::rem(), XrdSfsNative::remdir(), XrdSfsNative::rename(), Render_Glyph(), TRint::Run(), ROOT::Math::DistSampler::SampleBin(), XrdSecProtocolssl::secClient(), XrdSecProtocolssl::secServer(), RooSuperCategory::setType(), sfnt_init_face(), sfnt_load_face(), sfnt_open_font(), TMVA::MethodMLP::SimulateEvent(), skip_literal_string(), skip_procedure(), TH2::Smooth(), RooAbsCollection::snapshot(), TAuthenticate::SshError(), XrdSfsNative::stat(), t1_allocate_blend(), T1_Compute_Max_Advance(), t1_decoder_parse_charstrings(), T1_Face_Init(), T1_Get_Advances(), T1_Get_MM_Var(), T1_Get_Multi_Master(), T1_Get_Private_Dict(), T1_Load_Glyph(), t1_load_keyword(), T1_New_Parser(), T1_Parse_Glyph(), T1_Parse_Glyph_And_Get_Char_String(), T1_Read_Metrics(), T1_Read_PFM(), T1_Set_MM_Blend(), T1_Set_MM_Design(), T1_Set_Var_Design(), T1_Size_Init(), t1operator_seac(), T42_Face_Init(), T42_GlyphSlot_Init(), T42_GlyphSlot_Load(), t42_load_keyword(), T42_Open_Face(), t42_parse_charstrings(), t42_parse_encoding(), t42_parse_sfnts(), t42_parser_init(), T42_Size_Init(), T42_Size_Request(), T42_Size_Select(), test_cos(), test_length(), test_rotate(), test_sin(), test_tan(), test_unit(), testDivide1(), testDivide2(), testDivide2D1(), testDivide2D2(), testDivide3D1(), testDivide3D2(), testDivideVar1(), testDivideVar2(), testDivSparse1(), testDivSparse2(), th2polyEurope(), RooAbsPdf::traceEvalHook(), RooAbsPdf::traceEvalPdf(), TT_Access_Glyph_Frame(), tt_face_get_name(), tt_face_get_ps_name(), tt_face_goto_table(), tt_face_load_any(), tt_face_load_cmap(), tt_face_load_cvt(), tt_face_load_eblc(), tt_face_load_font_dir(), tt_face_load_fpgm(), tt_face_load_gasp(), tt_face_load_generic_header(), tt_face_load_hdmx(), tt_face_load_hmtx(), tt_face_load_kern(), tt_face_load_loca(), tt_face_load_maxp(), tt_face_load_name(), tt_face_load_os2(), tt_face_load_pclt(), tt_face_load_post(), tt_face_load_prep(), tt_face_load_sbit_image(), tt_get_metrics(), TT_Hint_Glyph(), TT_Load_Composite_Glyph(), TT_Load_Simple_Glyph(), tt_name_entry_ascii_from_other(), tt_name_entry_ascii_from_utf16(), TT_Process_Composite_Glyph(), TT_Process_Simple_Glyph(), tt_sbit_decoder_alloc_bitmap(), tt_sbit_decoder_init(), tt_sbit_decoder_load_bit_aligned(), tt_sbit_decoder_load_bitmap(), tt_sbit_decoder_load_byte_aligned(), tt_sbit_decoder_load_compound(), and TMVA::MethodMLP::UpdateNetwork().


Generated on Tue Jul 5 15:58:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1