Uses of Class
org.sunflow.math.Vector3
Packages that use Vector3
Package
Description
-
Uses of Vector3 in org.sunflow
Methods in org.sunflow with parameters of type Vector3 -
Uses of Vector3 in org.sunflow.core
Methods in org.sunflow.core that return Vector3Modifier and TypeMethodDescriptionTexture.getBump(float x, float y, OrthoNormalBasis basis, float scale) final Vector3Ray.getDirection()Creates a vector to represent the direction of the ray.final Vector3ShadingState.getGeoNormal()Gets the geometric normal of the current hit point.final Vector3ShadingState.getNormal()Get shading normal at the hit point.Texture.getNormal(float x, float y, OrthoNormalBasis basis) Get the specified vector parameter from this list.ShadingState.transformNormalObjectToWorld(Vector3 n) Transform the given normal from object space to world space.ShadingState.transformNormalWorldToObject(Vector3 n) Transform the given normal from world space to object space.ShadingState.transformVectorObjectToWorld(Vector3 v) Transform the given vector from object space to world space.ShadingState.transformVectorWorldToObject(Vector3 v) Transform the given vector from world space to object space.Methods in org.sunflow.core with parameters of type Vector3Modifier and TypeMethodDescriptionfloatCompute a dot product between the current shadow ray direction and the specified vector.final floatComputes the dot product of an arbitrary vector with the direction of the ray.voidLightSource.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) Gets a photon to emit from this light source by setting each of the arguments.GlobalPhotonMapInterface.getRadiance(Point3 p, Vector3 n) Lookup the global diffuse radiance at the specified surface point.Get the specified vector parameter from this list.voidPhotonStore.store(ShadingState state, Vector3 dir, Color power, Color diffuse) Store the specified photon.final voidShadingState.storePhoton(Vector3 dir, Color power, Color diffuse) Records a photon at the specified location.ShadingState.transformNormalObjectToWorld(Vector3 n) Transform the given normal from object space to world space.ShadingState.transformNormalWorldToObject(Vector3 n) Transform the given normal from world space to object space.ShadingState.transformVectorObjectToWorld(Vector3 v) Transform the given vector from object space to world space.ShadingState.transformVectorWorldToObject(Vector3 v) Transform the given vector from world space to object space.Constructors in org.sunflow.core with parameters of type Vector3 -
Uses of Vector3 in org.sunflow.core.light
Methods in org.sunflow.core.light with parameters of type Vector3Modifier and TypeMethodDescriptionvoidDirectionalSpotlight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidImageBasedLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidPointLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidSphereLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidSunSkyLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidTriangleMeshLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) -
Uses of Vector3 in org.sunflow.core.photonmap
Methods in org.sunflow.core.photonmap with parameters of type Vector3Modifier and TypeMethodDescriptionGlobalPhotonMap.getRadiance(Point3 p, Vector3 n) GridPhotonMap.getRadiance(Point3 p, Vector3 n) voidCausticPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse) voidGlobalPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse) voidGridPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse) -
Uses of Vector3 in org.sunflow.core.primitive
Methods in org.sunflow.core.primitive with parameters of type Vector3 -
Uses of Vector3 in org.sunflow.math
Methods in org.sunflow.math that return Vector3Modifier and TypeMethodDescriptionstatic final Vector3static final Vector3static final Vector3Vector3.decode(short n) static final Vector3final Vector3Vector3.div(float d) final Vector3final Vector3BoundingBox.getExtents()Gets the extents vector for the box.final Vector3Vector3.mul(float s) final Vector3final Vector3Vector3.negate()final Vector3static final Vector3PerlinVector.noise(float x) static final Vector3PerlinVector.noise(float x, float y) static final Vector3PerlinVector.noise(float x, float y, float z) static final Vector3PerlinVector.noise(float x, float y, float z, float t) static final Vector3static final Vector3static final Vector3static final Vector3static final Vector3final Vector3Vector3.normalize()final Vector3static final Vector3PerlinVector.pnoise(float x, float period) static final Vector3PerlinVector.pnoise(float x, float y, float w, float h) static final Vector3PerlinVector.pnoise(float x, float y, float z, float w, float h, float d) static final Vector3PerlinVector.pnoise(float x, float y, float z, float t, float w, float h, float d, float p) static final Vector3static final Vector3static final Vector3final Vector3Vector3.set(float x, float y, float z) final Vector3static final Vector3PerlinVector.snoise(float x) static final Vector3PerlinVector.snoise(float x, float y) static final Vector3PerlinVector.snoise(float x, float y, float z) static final Vector3PerlinVector.snoise(float x, float y, float z, float t) static final Vector3static final Vector3static final Vector3static final Vector3PerlinVector.spnoise(float x, float period) static final Vector3PerlinVector.spnoise(float x, float y, float w, float h) static final Vector3PerlinVector.spnoise(float x, float y, float z, float w, float h, float d) static final Vector3PerlinVector.spnoise(float x, float y, float z, float t, float w, float h, float d, float p) static final Vector3static final Vector3static final Vector3static final Vector3static final Vector3final Vector3Matrix4.transformTransposeV(Vector3 v) Computes (this^T)*v and returns the result as a new Vector3 object.final Vector3Matrix4.transformV(Vector3 v) Computes this*v and returns the result as a new Vector3 object.OrthoNormalBasis.untransform(Vector3 a) OrthoNormalBasis.untransform(Vector3 a, Vector3 dest) Methods in org.sunflow.math with parameters of type Vector3Modifier and TypeMethodDescriptionstatic final Point3static final Vector3static final Vector3static final Vector3final Vector3static final floatstatic final Matrix4Creates a camera positioning matrix from the given eye and target points and up vector.static final OrthoNormalBasisstatic final OrthoNormalBasisOrthoNormalBasis.makeFromWV(Vector3 w, Vector3 v) final Vector3final Vector3static final Vector3final Vector3static final floatstatic final floatstatic final Vector3static final Vector3final Vector3static final floatstatic final floatstatic final Vector3static final Vector3static final Vector3static final Vector3final Vector3Matrix4.transformTransposeV(Vector3 v) Computes (this^T)*v and returns the result as a new Vector3 object.final Vector3Matrix4.transformV(Vector3 v) Computes this*v and returns the result as a new Vector3 object.OrthoNormalBasis.untransform(Vector3 a) OrthoNormalBasis.untransform(Vector3 a, Vector3 dest) floatOrthoNormalBasis.untransformX(Vector3 a) floatOrthoNormalBasis.untransformY(Vector3 a) floatOrthoNormalBasis.untransformZ(Vector3 a) Constructors in org.sunflow.math with parameters of type Vector3