Table of Contents

Class Sphere

Namespace
Graphene
Assembly
Graphene-1.0.dll
public sealed class Sphere : BoxedRecord, IEquatable<Sphere>
Inheritance
Sphere
Implements
Inherited Members

Constructors

Sphere()

public Sphere()

Sphere(SphereOwnedHandle)

public Sphere(SphereOwnedHandle handle)

Parameters

handle SphereOwnedHandle

Properties

Handle

public SphereOwnedHandle Handle { get; }

Property Value

SphereOwnedHandle

Methods

Alloc()

[Version("1.2")]
public static Sphere Alloc()

Returns

Sphere

ContainsPoint(Point3D)

[Version("1.2")]
public bool ContainsPoint(Point3D point)

Parameters

point Point3D

Returns

bool

Distance(Point3D)

[Version("1.2")]
public float Distance(Point3D point)

Parameters

point Point3D

Returns

float

Equal(Sphere)

[Version("1.2")]
public bool Equal(Sphere b)

Parameters

b Sphere

Returns

bool

Equals(Sphere?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Sphere? other)

Parameters

other Sphere

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("1.2")]
public void Free()

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetRadius()

[Version("1.2")]
public float GetRadius()

Returns

float

Init(Point3D?, float)

[Version("1.2")]
public Sphere Init(Point3D? center, float radius)

Parameters

center Point3D
radius float

Returns

Sphere

InitFromPoints(Point3D[], Point3D?)

[Version("1.2")]
public Sphere InitFromPoints(Point3D[] points, Point3D? center)

Parameters

points Point3D[]
center Point3D

Returns

Sphere

InitFromVectors(Vec3[], Point3D?)

[Version("1.2")]
public Sphere InitFromVectors(Vec3[] vectors, Point3D? center)

Parameters

vectors Vec3[]
center Point3D

Returns

Sphere

IsEmpty()

[Version("1.2")]
public bool IsEmpty()

Returns

bool