Difference between revisions of "Xojo.Core.Point.Constructor(X As Double, Y As Double)"

From Xojo Documentation

(Created page with "{{ConstructorBox | name=Constructor | owner=Parent | ownertype=class | scope=public | parameters=X As Double, Y As Double }} {{Description | text = Initializes the...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{ConstructorBox
 
{{ConstructorBox
 
| name=Constructor
 
| name=Constructor
| owner=[[Parent]]
+
| owner=[[Xojo.Core.Point]]
 
| ownertype=class
 
| ownertype=class
 
| scope=public
 
| scope=public
Line 11: Line 11:
 
Create a point for 100, 50:
 
Create a point for 100, 50:
 
<rbcode>
 
<rbcode>
Dim p As New Xojo.Core.Point(100, 50)
+
Var p As New Xojo.Core.Point(100, 50)
 
</rbcode>
 
</rbcode>

Latest revision as of 17:36, 11 August 2019

Constructor

Xojo.Core.Point.Constructor(X As Double, Y As Double)

Initializes the Point with an (x, y) of the parameters passed in.

Sample Code

Create a point for 100, 50:

Var p As New Xojo.Core.Point(100, 50)