Table of Contents

Class Vec4

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

Constructors

Vec4()

public Vec4()

Vec4(Vec4OwnedHandle)

public Vec4(Vec4OwnedHandle handle)

Parameters

handle Vec4OwnedHandle

Properties

Handle

public Vec4OwnedHandle Handle { get; }

Property Value

Vec4OwnedHandle

Methods

Alloc()

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

Returns

Vec4

Dot(Vec4)

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

Parameters

b Vec4

Returns

float

Equal(Vec4)

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

Parameters

v2 Vec4

Returns

bool

Equals(Vec4?)

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

public bool Equals(Vec4? other)

Parameters

other Vec4

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.

GetW()

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

Returns

float

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, float)

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

Parameters

x float
y float
z float
w float

Returns

Vec4

InitFromVec2(Vec2, float, float)

[Version("1.0")]
public Vec4 InitFromVec2(Vec2 src, float z, float w)

Parameters

src Vec2
z float
w float

Returns

Vec4

InitFromVec3(Vec3, float)

[Version("1.0")]
public Vec4 InitFromVec3(Vec3 src, float w)

Parameters

src Vec3
w float

Returns

Vec4

InitFromVec4(Vec4)

[Version("1.0")]
public Vec4 InitFromVec4(Vec4 src)

Parameters

src Vec4

Returns

Vec4

Length()

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

Returns

float

Near(Vec4, float)

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

Parameters

v2 Vec4
epsilon float

Returns

bool

One()

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

Returns

Vec4

WAxis()

[Version("1.0")]
public static Vec4 WAxis()

Returns

Vec4

XAxis()

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

Returns

Vec4

YAxis()

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

Returns

Vec4

ZAxis()

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

Returns

Vec4

Zero()

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

Returns

Vec4