Exemple #1
0
    public static void sincos(out IntFactor s, out IntFactor c, long nom, long den)
    {
        int index = IntSinCosTable.getIndex(nom, den);

        s = new IntFactor((long)IntSinCosTable.sin_table[index], (long)IntSinCosTable.FACTOR);
        c = new IntFactor((long)IntSinCosTable.cos_table[index], (long)IntSinCosTable.FACTOR);
    }
Exemple #2
0
    public static void sincos(out IntFactor s, out IntFactor c, IntFactor angle)
    {
        int index = IntSinCosTable.getIndex(angle.numerator, angle.denominator);

        s = new IntFactor((long)IntSinCosTable.sin_table[index], (long)IntSinCosTable.FACTOR);
        c = new IntFactor((long)IntSinCosTable.cos_table[index], (long)IntSinCosTable.FACTOR);
    }
Exemple #3
0
    public static IntFactor cos(long nom, long den)
    {
        int index = IntSinCosTable.getIndex(nom, den);

        return(new IntFactor((long)IntSinCosTable.cos_table[index], (long)IntSinCosTable.FACTOR));
    }