Table of Contents

Class Size3f

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

Represents a vector of 3 floats. Go bug Tyron of you need more utility methods in this class. Open in GitHub

[DocumentAsJson]
public class Size3f : ISize3
Inheritance
Size3f
Implements
Inherited Members
Extension Methods

Constructors

Size3f()

public Size3f()

Size3f(float, float, float)

public Size3f(float width, float height, float length)

Parameters

width float
height float
length float

Fields

Height

The Y-dimension for this size.

[DocumentAsJson("Recommended", "0", false)]
public float Height

Field Value

float

Length

The Z-dimension for this size.

[DocumentAsJson("Recommended", "0", false)]
public float Length

Field Value

float

Width

The X-dimension of this size.

[DocumentAsJson("Recommended", "0", false)]
public float Width

Field Value

float

Properties

HeightAsDouble

public double HeightAsDouble { get; }

Property Value

double

HeightAsFloat

public float HeightAsFloat { get; }

Property Value

float

HeightAsInt

public int HeightAsInt { get; }

Property Value

int

LengthAsDouble

public double LengthAsDouble { get; }

Property Value

double

LengthAsFloat

public float LengthAsFloat { get; }

Property Value

float

LengthAsInt

public int LengthAsInt { get; }

Property Value

int

Volume

public float Volume { get; }

Property Value

float

WidthAsDouble

public double WidthAsDouble { get; }

Property Value

double

WidthAsFloat

public float WidthAsFloat { get; }

Property Value

float

WidthAsInt

public int WidthAsInt { get; }

Property Value

int

Methods

CanContain(Size3f)

public bool CanContain(Size3f obj)

Parameters

obj Size3f

Returns

bool

Clone()

public Size3f Clone()

Returns

Size3f