GO2cam Javascript API  6.11
GO2SOblongCreate Class Reference

Helper class to create oblong. More...

Inherits QObject.

Static Public Member Functions

static GO2SOblong FromCenter (GO2SXYZ pt, Number angle, Number len, Number radius)
 
static GO2SOblong FromPoints (GO2SXYZ pt1, GO2SXYZ pt2, Number radius)
 See GO2SOblong.SetFromPoints.
 

Detailed Description

Helper class to create oblong.

Member Function Documentation

◆ FromCenter()

static GO2SOblong GO2SOblongCreate::FromCenter ( GO2SXYZ pt,
Number angle,
Number len,
Number radius )
static

See GO2SOblong.SetFromCenter

var p1 = new GO2SXYZ(10,10,0)
var p2 = new GO2SXYZ(10,100,0)
var obl1 = new GO2SOblong(p1,p2,20)
var p0 = new GO2SXYZ(50,50,0)
var obl2 = GO2SOblongCreate.FromCenter(p0, 30, 90, 20)