Table of Contents

Class Vec3

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

Constructors

Vec3()

public Vec3()

Vec3(Vec3OwnedHandle)

public Vec3(Vec3OwnedHandle handle)

Parameters

handle Vec3OwnedHandle

Properties

Handle

public Vec3OwnedHandle Handle { get; }

Property Value

Vec3OwnedHandle

Methods

Alloc()

[Version("1.0")]
public static Vec3 Alloc()

Returns

Vec3

Dot(Vec3)

[Version("1.0")]
public float Dot(Vec3 b)

Parameters

b Vec3

Returns

float

Equal(Vec3)

[Version("1.2")]
public bool Equal(Vec3 v2)

Parameters

v2 Vec3

Returns

bool

Equals(Vec3?)

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

public bool Equals(Vec3? other)

Parameters

other Vec3

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.0")]
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.

GetX()

[Version("1.0")]
public float GetX()

Returns

float

GetY()

[Version("1.0")]
public float GetY()

Returns

float

GetZ()

[Version("1.0")]
public float GetZ()

Returns

float

Init(float, float, float)

[Version("1.0")]
public Vec3 Init(float x, float y, float z)

Parameters

x float
y float
z float

Returns

Vec3

InitFromVec3(Vec3)

[Version("1.0")]
public Vec3 InitFromVec3(Vec3 src)

Parameters

src Vec3

Returns

Vec3

Length()

[Version("1.0")]
public float Length()

Returns

float

Near(Vec3, float)

[Version("1.2")]
public bool Near(Vec3 v2, float epsilon)

Parameters

v2 Vec3
epsilon float

Returns

bool

One()

[Version("1.0")]
public static Vec3 One()

Returns

Vec3

XAxis()

[Version("1.0")]
public static Vec3 XAxis()

Returns

Vec3

YAxis()

[Version("1.0")]
public static Vec3 YAxis()

Returns

Vec3

ZAxis()

[Version("1.0")]
public static Vec3 ZAxis()

Returns

Vec3

Zero()

[Version("1.0")]
public static Vec3 Zero()

Returns

Vec3