C# Class Glare.Sphere2d

A sphere definition, which has a position and radius.
Show file Open project: Burton-Radons/Alexandria

Public Properties

Property Type Description
Position Vector2d
Radius Double

Public Methods

Method Description
Sphere2d ( Double radius ) : System

Initialise a sphere centred at origin.

Sphere2d ( Vector2d position, Double radius ) : System

Initialise the Sphere3d.

Method Details

Sphere2d() public method

Initialise a sphere centred at origin.
public Sphere2d ( Double radius ) : System
radius Double The radius of the .
return System

Sphere2d() public method

Initialise the Sphere3d.
public Sphere2d ( Vector2d position, Double radius ) : System
position Vector2d The centre of the .
radius Double The radius of the .
return System

Property Details

Position public property

Get or set the centre of the Sphere3d.
public Vector2d Position
return Vector2d

Radius public property

Get or set the radius of the Sphere3d.
public Double Radius
return Double