Examples of negate()


Examples of org.jbox2d.common.Vec2.negate()

                vel.x = ois.readFloat();
                vel.y = ois.readFloat();
                if (b == 0){
                    if (AirHockey.goali == 0){
                        AirHockey.mallet2.update(pos);
                        AirHockey.mallet2.body.setLinearVelocity(vel.negate());
                        AirHockey.mallet2.body.setAngularVelocity(0.0f);
                    }
                }else{
                    int idx = ois.readByte();
                    AirHockey.puck.get(idx).update(pos);
View Full Code Here

Examples of org.jvnet.substance.theme.SubstanceTheme.negate()

            }
            bool = XMLutils.getElementBoolean("negate", config); //$NON-NLS-1$
            if (bool != null && bool.booleanValue()) {
                SubstanceTheme theme = SubstanceLookAndFeel.getTheme();

                SubstanceLookAndFeel.setCurrentTheme(theme.negate());
            }

            Double factor = XMLutils.getElementDouble("saturate",config); //$NON-NLS-1$
            if (factor != null) {
                bool = XMLutils.getElementBoolean("saturateEverything", config); //$NON-NLS-1$
View Full Code Here

Examples of org.pdf4j.saxon.value.NumericValue.negate()

        NumericValue v1 = (NumericValue) operand.evaluateItem(context);
        if (v1 == null) {
            return backwardsCompatible ? DoubleValue.NaN : null;
        }
        return v1.negate();
    }

    /**
     * Copy an expression. This makes a deep copy.
     *
 
View Full Code Here

Examples of ptolemy.math.Complex.negate()

            }
            scalar = ((ComplexMatrixToken) rightArgument).getElementAt(0, 0);
        } else {
            scalar = ((ComplexToken) rightArgument).complexValue();
        }
        Complex[][] result = ComplexMatrixMath.add(_value, scalar.negate());
        return new ComplexMatrixToken(result);
    }

    /** Return a new token whose value is the value of the argument
     *  Token subtracted from the value of each element of this Token. It is
View Full Code Here

Examples of ro.redeul.google.go.util.GoNumber.negate()

                switch (getUnaryOp()) {
                    case Plus:
                        return constant;
                    case Minus:
                        return GoTypes.constant(GoTypeConstant.Kind.Complex, complexValue.negate());
                    default:
                        return GoType.Unknown;
                }
        }
View Full Code Here

Examples of sk.fiit.jim.math.Vector3D.negate()

    //                        (Y_2 - Y_1) . (Y_2 - Y_1)
    Vector3D z2 = z1.subtract(y2MinusY1.crossProduct(z1.subtract(y1)).crossProduct(y2MinusY1).divide(y2MinusY1.dotProduct(y2MinusY1)));
    Vector3D zAxis = z1.subtract(z2).toUnitVector();
   
    if (absolute.get(order[2]).getZ() == 0.0)
      zAxis = zAxis.negate();
     
    Vector3D xAxis = yAxis.crossProduct(zAxis).toUnitVector();
   
    double rotationX = asin(-xAxis.getZ());
    double rotationZ = atan2( -xAxis.rotateOverX(rotationX).getY() / cos(rotationX), xAxis.rotateOverX(rotationX).getX() / cos(rotationX));
View Full Code Here

Examples of wyautl.util.BigRational.negate()

        sb.append((char) next());
      }
      BigRational val = new BigRational(sb.toString());

      if(negative) {
        val = val.negate();
      }

      return automaton.add(new Automaton.Real(val));

    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.