Table of Contents

Class Vec4d

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll
public class Vec4d
Inheritance
Vec4d
Inherited Members
Extension Methods

Constructors

Vec4d()

public Vec4d()

Vec4d(double, double, double, double)

public Vec4d(double x, double y, double z, double w)

Parameters

x double
y double
z double
w double

Fields

W

public double W

Field Value

double

X

public double X

Field Value

double

Y

public double Y

Field Value

double

Z

public double Z

Field Value

double

Properties

this[int]

Returns the n-th coordinate

public double this[int index] { get; set; }

Parameters

index int

Property Value

double

XYZ

public Vec3d XYZ { get; }

Property Value

Vec3d

Methods

HorizontalSquareDistanceTo(double, double)

public float HorizontalSquareDistanceTo(double x, double z)

Parameters

x double
z double

Returns

float

HorizontalSquareDistanceTo(Vec3d)

public float HorizontalSquareDistanceTo(Vec3d pos)

Parameters

pos Vec3d

Returns

float

Set(double, double, double, double)

public void Set(double x, double y, double z, double w)

Parameters

x double
y double
z double
w double

SquareDistanceTo(double, double, double)

public float SquareDistanceTo(double x, double y, double z)

Parameters

x double
y double
z double

Returns

float

SquareDistanceTo(float, float, float)

public float SquareDistanceTo(float x, float y, float z)

Parameters

x float
y float
z float

Returns

float

SquareDistanceTo(Vec3d)

public float SquareDistanceTo(Vec3d pos)

Parameters

pos Vec3d

Returns

float