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
Fields
W
public double W
Field Value
X
public double X
Field Value
Y
public double Y
Field Value
Z
public double Z
Field Value
Properties
this[int]
Returns the n-th coordinate
public double this[int index] { get; set; }
Parameters
index
int
Property Value
XYZ
public Vec3d XYZ { get; }
Property Value
Methods
HorizontalSquareDistanceTo(double, double)
public float HorizontalSquareDistanceTo(double x, double z)
Parameters
Returns
HorizontalSquareDistanceTo(Vec3d)
public float HorizontalSquareDistanceTo(Vec3d pos)
Parameters
pos
Vec3d
Returns
Set(double, double, double, double)
public void Set(double x, double y, double z, double w)
Parameters
SquareDistanceTo(double, double, double)
public float SquareDistanceTo(double x, double y, double z)
Parameters
Returns
SquareDistanceTo(float, float, float)
public float SquareDistanceTo(float x, float y, float z)
Parameters
Returns
SquareDistanceTo(Vec3d)
public float SquareDistanceTo(Vec3d pos)
Parameters
pos
Vec3d