Table of Contents

Class Ray

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

Constructors

Ray()

public Ray()

Ray(Vec3d, Vec3d)

public Ray(Vec3d o, Vec3d d)

Parameters

o Vec3d
d Vec3d

Fields

dir

public Vec3d dir

Field Value

Vec3d

origin

public Vec3d origin

Field Value

Vec3d

Properties

Length

public double Length { get; }

Property Value

double

Methods

FromAngles(Vec3d, float, float, float)

public static Ray FromAngles(Vec3d pos, float pitch, float yaw, float pickingRange)

Parameters

pos Vec3d
pitch float
yaw float
pickingRange float

Returns

Ray

FromPositions(Vec3d, Vec3d)

public static Ray FromPositions(Vec3d fromPos, Vec3d toPos)

Parameters

fromPos Vec3d
toPos Vec3d

Returns

Ray

LimitToWalls(int, int, int, int, int, int)

public void LimitToWalls(int minx, int miny, int minz, int maxx, int maxy, int maxz)

Parameters

minx int
miny int
minz int
maxx int
maxy int
maxz int