⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 juxing.java

📁 初学java,最近帮同学作的一些实验
💻 JAVA
字号:

public class juxing extends father{
  double ax,ay,bx,by,cx,cy,dx,dy;
  public juxing(double ax,double ay,double bx,double by,double cx,double cy,double dx,double dy)
  {
	  this.ax=ax;this.ay=ay;
	  this.bx=bx;this.by=by;
	  this.cx=cx;this.cy=cy;
	  this.dx=dx;this.dy=dy;
  }
  public double computC()
  {
	  c=computLadge(ax,ay,bx,by)+computLadge(ax,ay,cx,cy);
	  return c;
  }
  public double computS()
  {
	  s=computLadge(ax,ay,bx,by)*computLadge(ax,ay,cx,cy);
	  return s;
  }
  public void computCenter()
  {
	  Cx=(ax+cx)/2;
	  Cy=(ay+cy)/2;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -