C# Class Vector.RayTracing.Sphere

Inheritance: Object3D
Mostra file Open project: sinclairzx81/vector-cs

Public Properties

Property Type Description
center Vector3
radius float
radius2 float

Public Methods

Method Description
Sphere ( Vector3 center, float radius, Surface surface ) : Vector.Math
intersect ( Ray ray ) : Intersection
normal ( Vector3 pos ) : Vector3

Method Details

Sphere() public method

public Sphere ( Vector3 center, float radius, Surface surface ) : Vector.Math
center Vector3
radius float
surface Surface
return Vector.Math

intersect() public method

public intersect ( Ray ray ) : Intersection
ray Ray
return Intersection

normal() public method

public normal ( Vector3 pos ) : Vector3
pos Vector3
return Vector3

Property Details

center public_oe property

public Vector3 center
return Vector3

radius public_oe property

public float radius
return float

radius2 public_oe property

public float radius2
return float