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
Fields
dir
public Vec3d dir
Field Value
origin
public Vec3d origin
Field Value
Properties
Length
public double Length { get; }
Property Value
Methods
FromAngles(Vec3d, float, float, float)
public static Ray FromAngles(Vec3d pos, float pitch, float yaw, float pickingRange)
Parameters
Returns
FromPositions(Vec3d, Vec3d)
public static Ray FromPositions(Vec3d fromPos, Vec3d toPos)
Parameters
Returns
LimitToWalls(int, int, int, int, int, int)
public void LimitToWalls(int minx, int miny, int minz, int maxx, int maxy, int maxz)