Table of Contents

Class Sphere

Namespace
Graphene.Internal
Assembly
Graphene-1.0.dll
public class Sphere
Inheritance
Sphere
Inherited Members

Methods

Alloc()

Calls native constructor graphene_sphere_alloc. Version: 1.2

[Version("1.2")]
public static extern SphereOwnedHandle Alloc()

Returns

SphereOwnedHandle

Transfer ownership: Full Nullable: False

ContainsPoint(SphereHandle, Point3DHandle)

Calls native method graphene_sphere_contains_point. Version: 1.2

[Version("1.2")]
public static extern bool ContainsPoint(SphereHandle s, Point3DHandle point)

Parameters

s SphereHandle

Transfer ownership: None Nullable: False

point Point3DHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Distance(SphereHandle, Point3DHandle)

Calls native method graphene_sphere_distance. Version: 1.2

[Version("1.2")]
public static extern float Distance(SphereHandle s, Point3DHandle point)

Parameters

s SphereHandle

Transfer ownership: None Nullable: False

point Point3DHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

Equal(SphereHandle, SphereHandle)

Calls native method graphene_sphere_equal. Version: 1.2

[Version("1.2")]
public static extern bool Equal(SphereHandle a, SphereHandle b)

Parameters

a SphereHandle

Transfer ownership: None Nullable: False

b SphereHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Free(SphereHandle)

Calls native method graphene_sphere_free. Version: 1.2

[Version("1.2")]
public static extern void Free(SphereHandle s)

Parameters

s SphereHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function graphene_sphere_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetRadius(SphereHandle)

Calls native method graphene_sphere_get_radius. Version: 1.2

[Version("1.2")]
public static extern float GetRadius(SphereHandle s)

Parameters

s SphereHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

Init(SphereHandle, Point3DHandle, float)

Calls native method graphene_sphere_init. Version: 1.2

[Version("1.2")]
public static extern SphereUnownedHandle Init(SphereHandle s, Point3DHandle center, float radius)

Parameters

s SphereHandle

Transfer ownership: None Nullable: False

center Point3DHandle

Transfer ownership: None Nullable: True

radius float

Transfer ownership: None Nullable: False

Returns

SphereUnownedHandle

Transfer ownership: None Nullable: False

InitFromPoints(SphereHandle, uint, Point3DArrayHandle, Point3DHandle)

Calls native method graphene_sphere_init_from_points. Version: 1.2

[Version("1.2")]
public static extern SphereUnownedHandle InitFromPoints(SphereHandle s, uint nPoints, Point3DArrayHandle points, Point3DHandle center)

Parameters

s SphereHandle

Transfer ownership: None Nullable: False

nPoints uint

Transfer ownership: None Nullable: False

points Point3DArrayHandle

Transfer ownership: None Nullable: False

center Point3DHandle

Transfer ownership: None Nullable: True

Returns

SphereUnownedHandle

Transfer ownership: None Nullable: False

InitFromVectors(SphereHandle, uint, Vec3ArrayHandle, Point3DHandle)

Calls native method graphene_sphere_init_from_vectors. Version: 1.2

[Version("1.2")]
public static extern SphereUnownedHandle InitFromVectors(SphereHandle s, uint nVectors, Vec3ArrayHandle vectors, Point3DHandle center)

Parameters

s SphereHandle

Transfer ownership: None Nullable: False

nVectors uint

Transfer ownership: None Nullable: False

vectors Vec3ArrayHandle

Transfer ownership: None Nullable: False

center Point3DHandle

Transfer ownership: None Nullable: True

Returns

SphereUnownedHandle

Transfer ownership: None Nullable: False

IsEmpty(SphereHandle)

Calls native method graphene_sphere_is_empty. Version: 1.2

[Version("1.2")]
public static extern bool IsEmpty(SphereHandle s)

Parameters

s SphereHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False