Examples of radius()


Examples of flanagan.physprop.IonicRadii.radius()

        double rad = 0.0D;
        if(this.radiusType){
            rad = ir.hydratedRadius(ion);
        }
        else{
            rad = ir.radius(ion);
        }
        if(rad==0.0D){
            String mess1 = ion + " radius is not in the IonicRadii list\n";
            String mess2 = "Please enter radius in metres\n";
            rad = Db.readDouble(mess1+mess2);
View Full Code Here

Examples of flanagan.physprop.IonicRadii.radius()

        if(this.includeIc){
            if(this.radiusType){
                rad = ir.hydratedRadius(ion);
            }
            else{
                rad = ir.radius(ion);
            }

            if(rad==0.0D){
                String mess1 = ion + " radius is not in the IonicRadii list\n";
                String mess2 = "Please enter radius in metres\n";
View Full Code Here

Examples of org.movsim.roadmappings.RoadMappingArc.radius()

            // return;
        } else if (roadMappingClass == RoadMappingArc.class) {
            final RoadMappingArc arc = (RoadMappingArc) roadMapping;
            posTheta = roadMapping.startPos();
            final double angSt = arc.startAngle() + (arc.clockwise() ? 0.5 * Math.PI : -0.5 * Math.PI);
            final double radius = arc.radius();
            final double dx = radius * Math.cos(angSt);
            final double dy = radius * Math.sin(angSt);
            final Arc2D.Double arc2D = new Arc2D.Double();
            arc2D.setArcByCenter(posTheta.x - dx, posTheta.y + dy, radius + lateralOffset, Math.toDegrees(angSt),
                    Math.toDegrees(arc.arcAngle()), Arc2D.OPEN);
View Full Code Here

Examples of org.movsim.roadmappings.RoadMappingArc.radius()

            g.draw(arc2D);
            return;
        } else if (roadMappingClass == RoadMappingCircle.class) {
            final RoadMappingCircle arc = (RoadMappingCircle) roadMapping;
            posTheta = roadMapping.startPos();
            final double radius = arc.radius();
            final Arc2D.Double arc2D = new Arc2D.Double();
            arc2D.setArcByCenter(posTheta.x - radius, posTheta.y, radius + lateralOffset, 0.0, 360.0, Arc2D.OPEN);
            g.draw(arc2D);
            return;
        } else if (roadMappingClass == RoadMappingLine.class) {
View Full Code Here

Examples of org.movsim.roadmappings.RoadMappingCircle.radius()

            g.draw(arc2D);
            return;
        } else if (roadMappingClass == RoadMappingCircle.class) {
            final RoadMappingCircle arc = (RoadMappingCircle) roadMapping;
            posTheta = roadMapping.startPos();
            final double radius = arc.radius();
            final Arc2D.Double arc2D = new Arc2D.Double();
            arc2D.setArcByCenter(posTheta.x - radius, posTheta.y, radius + lateralOffset, 0.0, 360.0, Arc2D.OPEN);
            g.draw(arc2D);
            return;
        } else if (roadMappingClass == RoadMappingLine.class) {
View Full Code Here

Examples of org.movsim.roadmappings.RoadMappingU.radius()

            line.setLine(from, to);
            g.draw(line);

            // draw the U
            posTheta = mappingU.startPos();
            final double radius = mappingU.radius();
            final Arc2D.Double arc2D = new Arc2D.Double();
            arc2D.setArcByCenter(posTheta.x - straightLength, posTheta.y + radius, radius + lateralOffset, 90.0, 180.0,
                    Arc2D.OPEN);
            g.draw(arc2D);
            return;
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.