C# Class PixelFarm.VectorMath.Ray

a virtual ray that is casted from a begin Position in a certain Direction.
Datei anzeigen Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
direction System.Vector3
intersectionType IntersectionType
isShadowRay bool
maxDistanceToConsider double
minDistanceToConsider double
oneOverDirection System.Vector3
origin System.Vector3
sameSurfaceOffset double
sign Sign[]

Public Methods

Method Description
Intersection ( AxisAlignedBoundingBox bounds ) : bool
Ray ( Ray rayToCopy ) : System
Ray ( System.Vector3 origin, System.Vector3 direction, double minDistanceToConsider, double maxDistanceToConsider = double.PositiveInfinity, IntersectionType intersectionType = IntersectionType.FrontFace ) : System

Method Details

Intersection() public method

public Intersection ( AxisAlignedBoundingBox bounds ) : bool
bounds AxisAlignedBoundingBox
return bool

Ray() public method

public Ray ( Ray rayToCopy ) : System
rayToCopy Ray
return System

Ray() public method

public Ray ( System.Vector3 origin, System.Vector3 direction, double minDistanceToConsider, double maxDistanceToConsider = double.PositiveInfinity, IntersectionType intersectionType = IntersectionType.FrontFace ) : System
origin System.Vector3
direction System.Vector3
minDistanceToConsider double
maxDistanceToConsider double
intersectionType IntersectionType
return System

Property Details

direction public_oe property

public Vector3,System direction
return System.Vector3

intersectionType public_oe property

public IntersectionType intersectionType
return IntersectionType

isShadowRay public_oe property

public bool isShadowRay
return bool

maxDistanceToConsider public_oe property

public double maxDistanceToConsider
return double

minDistanceToConsider public_oe property

public double minDistanceToConsider
return double

oneOverDirection public_oe property

public Vector3,System oneOverDirection
return System.Vector3

origin public_oe property

public Vector3,System origin
return System.Vector3

sameSurfaceOffset public_oe static_oe property

public static double sameSurfaceOffset
return double

sign public_oe property

public Sign[] sign
return Sign[]