CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Radius point
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Radius point - List
[
source in ebook
]
yuanxing
DL : 0
编写C++程序完成以下功能: (1)定义一个Point类,其属性包括点的坐标,提供计算两点之间距离的方法; (2)定义一个圆形类,其属性包括圆心和半径; (3)创建两个圆形对象,提示用户输入圆心坐标和半径,判断两个圆是否相交,并输出结果。 -The preparation of C++ program to accomplish the following functions: (1) defines a Point class, whose properties include the coordinates of points, providing the calculation method of the distance between two points (2) defines a circle class, whose properties include the center point and radius (3) to create two circular objects, prompts the user to enter the center point coordinates and radius to determine whether two circles intersect, and output.
Date
: 2025-12-31
Size
: 1kb
User
:
泣笑之泪
[
source in ebook
]
3
DL : 0
请设计一个模拟投篮过程的小游戏,游戏的要求如下: (1)设计一个matlab窗体,在窗体上防止一个坐标轴控件,并设置好该坐标系的坐标轴范围; (2)在坐标系上利用鼠标点击一个点a,作为篮筐的中心,并生成一个半径为r的圆,来模拟篮筐; (3)在坐标系上再用鼠标点一个点b,作为投篮的出发点,同时生成一个红色实心小球来模拟篮球,再选一个点c,b、c之间的连线作为投篮方向; (4)根据a、b、c三个点之间的位置关系,来模拟投篮过程,并记录命中次数; (5)以按住鼠标不放的时间来模拟力量(初始速度)的大小,并能够动态模拟篮球的运动轨迹,篮球的质量自定,忽略空气阻力的影响,相关的数值要求在坐标系右上角动态显示出来。 -Games, game design a simulation shooting process requirements are as follows: (1) design a Matlab form, to prevent a axis control on the form, and set the coordinate system axis range (2) in the coordinate Department using the mouse to click on a point a, and generates a radius r of the circle to simulate the basket as the center of the basket (3) in the coordinate system and then the mouse to point a point b, as draws the departure point, at the same time generate a red solid pellets to simulate basketball, and then choose a connection between the point c, b, c, as the shooting direction (4) according to the positional relationship between a, b, c three points, to simulate shooting process and record the number of hits (5) Press and hold the mouse button down to simulate the size of the force (initial velocity), and capable of dynamic simulation of the trajectory of the basketball, basketball quality custom ignore the effect of air resistance, the The numerical requirements displa
Date
: 2025-12-31
Size
: 9kb
User
:
江懋才
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.